Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在ExtJS面板中更改标题背景色_Css_Extjs - Fatal编程技术网

Css 在ExtJS面板中更改标题背景色

Css 在ExtJS面板中更改标题背景色,css,extjs,Css,Extjs,我有两个面板,我希望其标题的颜色与ExtJS主题提供的默认颜色不同 items: [{ title: 'Blacklist', style: { backgroundColor: 'red', backgroundImage: 'none' }, padding: '5 5 5 5', cls: 'blackList', items: [

我有两个面板,我希望其标题的颜色与ExtJS主题提供的默认颜色不同

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

您需要删除捕捉器以查看更改是否可以更具体?