Jquery 更改jqgrid的标题颜色

Jquery 更改jqgrid的标题颜色,jquery,jqgrid,Jquery,Jqgrid,我在jqgrid工作。我想更改标题栏的颜色,但我没有这样做。我不知道我犯了什么愚蠢的错误。我试过了,但没用 .ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column { border-bottom: 0 none; border-top: 0 none; overflow: hidden; text-align: center; white-space: nowrap; backgrou

我在jqgrid工作。我想更改标题栏的颜色,但我没有这样做。我不知道我犯了什么愚蠢的错误。我试过了,但没用

.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column {
    border-bottom: 0 none;
    border-top: 0 none;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    background: orange;
}
我还尝试了
.ui jqgrid.ui小部件标题{背景色:黄色!重要;}
,但它也不起作用。

使用这种方式

.ui-widget-header {
    border: 1px solid yellow;
    background: none;
    background-color: yellow !important;
}
尝试使用

.ui jqgrid.ui小部件头{
背景颜色:橙色;
背景图像:无
}
它会更改标题栏的背景色。要更改列标题的背景色,您应该使用以下CSS规则

.ui jqgrid.ui jqgrid标签th.ui-th列{
背景颜色:橙色;
背景图像:无
}

您可以指定
background
属性(例如
background:orange;
),一次设置多个属性,而不是同时设置
背景颜色和删除背景图像(
背景颜色
背景图像
背景重复
背景附件
背景位置
).

使用chrome inspector之类的工具,检查元素及其父元素的类。我已经尝试过了,但也不起作用。任何更改都不会影响jqgrid。我不知道原因。我把它放在ui.jqgrid.css文件中。@BranSmith:不客气!如果问题解决了,你应该给出答案。哦,当然。我只是错过了。完成了