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屋!
查看全文