1

在 jqgrid 中,我需要做以下几点: 1. 设置 jqgrid 的交替行背景颜色。2.设置jqgrid的Header背景颜色。

请分享我应该将哪种样式添加到我的页面或任何 jquery 脚本中来实现这一点?

谢谢

4

1 回答 1

3

以前问过的我的jqgrid 奇偶行颜色问题解决了您更改 jqgrid 背景颜色的问题。

步骤:1 使用 css 更改 jqgrid 中的列背景颜色

loadComplete: function() {
    $("tr.jqgrow:odd").css("background", "#E0E0E0");
},

步骤: 2在 css 类下header color更改 使用。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;
}
于 2014-02-22T05:22:15.097 回答