我使用了cls
、bodyCls
、componentCls
的ExtJS
属性,但没有得到结果。
例如:的
Ext.create('Ext.form.Panel', {
renderTo: document.body,
title: 'User Form',
height: 350,
width: 300,
cls: 'form',
bodyPadding: 10,
defaultType: 'textfield',
items: [{
fieldLabel: 'First Name',
name: 'firstName'
}, {
fieldLabel: 'Last Name',
name: 'lastName'
}, {
xtype: 'datefield',
fieldLabel: 'Date of Birth',
name: 'birthDate'
}]
});
现在CSS:
.form {
background-color:orange !important;
}
我想得到橙色的背景,但我没有得到我想要的结果。
如有任何帮助,我将不胜感激。
https://stackoverflow.com/questions/51656248
复制相似问题