【发布时间】:2014-05-13 14:10:52
【问题描述】:
我有一个表单面板..我试图在其中添加图像...图像块出现但图像未加载..调整图像块的大小工作正常..这是我的代码从 html 文件调用.. 有人可以帮我解决这个问题吗?
Ext.application({
name : 'hello',
launch : function() {
Ext.create('Ext.form.Panel', {
title : 'Create Catalog',
defaultType : 'textfield',
items : [ {
fieldLabel : 'Name',
name : 'name',
anchor : '100%',
allowBlank : false
},{
xtype : 'imagefield',
fieldLabel : 'Image Here',
src : 'i1.jpg',
width : 50,
height : 25
}
],
renderTo : Ext.getBody()
});
}
});
【问题讨论】: