0

DHTMLxTouchオンラインエディタを使用しています

3つのセルのレイアウトがあります

{ id: 'app', view: 'layout', height: 482, width: 322,
rows: [ { view: 'layout'
   , type: 'wide'
   , rows: [ { view: 'view', id: 'temp_designer_view_2'}
           , { view: 'view', id: 'temp_designer_view_3'}
           , { view: 'view', id: 'temp_designer_view_4'} ]
   , id: 'layout_2'} ] }

IDが「temp_designer_view_2」の最初のセルに画像を配置したい

4

1 に答える 1

2

「テンプレート」ビューを使用して、HTMLコンテンツをレイアウトアイテムに含めることをお勧めします。

   { id: 'app', view: 'layout', height: 482, width: 322,
    rows: [ { view: 'layout'
       , type: 'wide'
       , rows: [ { template: "<div class='imgParent'><img .../></div>", id: 'temp_designer_view_2'}
               , { template: '', id: 'temp_designer_view_3'}
               , { template: '', id: 'temp_designer_view_4'} ]
       , id: 'layout_2'} ] }

dhtmlxTouchパッケージの関連サンプルを確認してください:../samples/technical/view/04_template.htmlおよび../samples/technical/view/08_carousel.html

于 2011-12-07T12:28:25.247 に答える