Ext Window组件的大小与图片自适应 new Ext.Window({ width : 200, height : 200, autoWidth : true, autoHeight : true, items:[{// title : 'image', html : '<image src="' + url + '"></image>' }]}).show();这段代码高度可以根据图片大小自动调整,宽度不可以。为什么,怎么解决? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 width : 'auto',height : 'auto', new Ext.Window({ renderTo:Ext.getBody(), bodyStyle:'padding:10px;', //加个内边框好看一点 items:[{ html:'<image src="002.png"></image>' }]}).show();EXT 4.2 测试通过。ff下 new Ext.Window({ width : 200, height : 200, autoWidth : true, autoHeight : true, layout:'fit', items:[{// title : 'image', html : '<image width=100% height=100% src="' + url + '"></image>' }]}).show(); json格式的问题 新人求个关于javascript的学习书籍和方法 [疑难问题]jstree拖动树+types完美整合问题 ie中显示的javascript错误 JQuery 操作对象求助 vml图形导出问题 如何释放js创建的com组件对象 求一个netmeeting调用实例 想用一个脚本替代掉表单中一些指定的字符。如何做到? 请问:关于Javascript的日期运算? 关于非官方插件treegrid里AdjacencyListStore的问题 请问该菜单如何在点击后保留在当前连接的样式
height : 'auto',
renderTo:Ext.getBody(),
bodyStyle:'padding:10px;', //加个内边框好看一点
items:[{
html:'<image src="002.png"></image>'
}]
}).show();
EXT 4.2 测试通过。ff下
new Ext.Window({ width : 200, height : 200, autoWidth : true, autoHeight : true, layout:'fit', items:[{// title : 'image', html : '<image width=100% height=100% src="' + url + '"></image>' }]}).show();