Extjs中的Panel不能通过设定bodystyle来加载背景。
我现在想到的办法是用firedebug看要加背景的div的id
然后给panel添加reader的监听,方法里面修改div的class属性来达到添加背景的效果
listeners: {
render: function(p){
Ext.fly('ext-gen32').addClass('icon-loginBackground');
}
}
Extjs中的Panel不能通过设定bodystyle来加载背景。
我现在想到的办法是用firedebug看要加背景的div的id
然后给panel添加reader的监听,方法里面修改div的class属性来达到添加背景的效果
listeners: {
render: function(p){
Ext.fly('ext-gen32').addClass('icon-loginBackground');
}
}