ITeye博客

Ext.Panel HTML设置问题

Sev7en_jun · 2011-11-01 11:34 · JS · Web前端 · Markdown

var Test= new Ext.Panel({
        id:Test_panel',
        title:'业务地图',
        listeners: {activate: handleTestActivate},
        margins:'5 0 0 5',//up right down left
        html:'<iframe id="mapTro" src="/Test.html" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>'
          });

 

如上所示:
src设置本地html在页面上无法显示。

 
------------------------------------------------------------------------ 

**解决方案:如果无法加载html文件,在Panel里面加入属性

        frame: true,
        frameHeader: true,//这个好像不是必须的

就可以正常引入Test.html,路径根据实际情况定

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。