Css 在ExtJS面板中更改标题背景色
我有两个面板,我希望其标题的颜色与ExtJS主题提供的默认颜色不同Css 在ExtJS面板中更改标题背景色,css,extjs,Css,Extjs,我有两个面板,我希望其标题的颜色与ExtJS主题提供的默认颜色不同 items: [{ title: 'Blacklist', style: { backgroundColor: 'red', backgroundImage: 'none' }, padding: '5 5 5 5', cls: 'blackList', items: [
items: [{
title: 'Blacklist',
style: {
backgroundColor: 'red',
backgroundImage: 'none'
},
padding: '5 5 5 5',
cls: 'blackList',
items: [
grid
]
}
]
但它不起作用。我还尝试在我的styles.CSS
中设置CSS属性,但它只更改标题的一部分
#panel-1091_header-title-textEl{
background-color: black !important;
}
风格如下:
.myCls .x-panel-header-default {
background-color: green;
}
您可以在面板属性中定义cls
:cls: 'myCls'
请使用标题并对其应用样式:
title: 'Blacklist',
header: {
style: {
backgroundColor: 'red'
}
},
不需要使用cls您需要删除捕捉器以查看更改是否可以更具体?