如何在DHTMLx Touch中插入图像

How to insert an image in DHTMLx Touch

本文关键字:插入 图像 Touch DHTMLx      更新时间:2023-09-26

我使用的是DHTMLx Touch在线编辑器

我有一个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'的第一个单元格中放置图像

最好使用"template"视图将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和. ./样本/技术/视图/08年_carousel.html