JqGrid - 仅冻结列的标题颜色更改 [英] JqGrid - Header color change for Frozen columns only
本文介绍了JqGrid - 仅冻结列的标题颜色更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以只更改冻结列标题的背景颜色和字体颜色吗?我通过在 ui.jqgrid.css 中更改以下内容进行了尝试.
Can we change the Background color and font color of only the frozen columns header. I tried this by changing the following in ui.jqgrid.css.
.ui-jqgrid .ui-jqgrid-hdiv {position: relative; margin: 0;padding: 0; overflow-x: hidden; border-left: 0 none !important; border-top : 0 none !important; border-right : 0 none !important;background-color:#f0dcdd !important;color:Black;}
这并没有改变颜色.
推荐答案
你可以像下面这样使用CSS rile
You can use CSS rile like the following
.ui-jqgrid .frozen-div .ui-th-column { background: #f0dcdd; color: black; }
查看演示,它会显示图片上的结果下面
see the demo which displays the result like on the picture below
这篇关于JqGrid - 仅冻结列的标题颜色更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文