如何在选定的高亮行上更改行号(rownum)文本颜色?

huangapple go评论45阅读模式
英文:

JQGRID How to change row number (rownum) text color on selected highlighted rows?

问题

我有一个看起来像这样的jqgrid:

我想要改变选定行的行号文本颜色,使其变成白色,就像突出显示时的其他文本一样。

我设法通过在CSS中执行以下操作来更改默认颜色:

.jqgrow .jqgrid-rownum  { background-color: transparent; background-image: none; color:#ffffff}

但我不知道如何在突出显示状态下做同样的事情。

我尝试过使用.ui-state-highlight,但它不起作用。

英文:

I have a jqgrid looking like this :

如何在选定的高亮行上更改行号(rownum)文本颜色?

I would like to change the rownum text color on the selected rows so it can be white like the rest of the text when highlighted.

I managed to change the default color by doing this in CSS :

.jqgrow .jqgrid-rownum  { background-color: transparent; background-image: none; color:#ffffff}

But i don't know how to do the same for the highlight state.

I tried with .ui-state-highlight but it's not working.

答案1

得分: 1

这是您要翻译的内容:

你可以这样做:

    .ui-state-highlight > .jqgrid-rownum{color: red !important}

编辑:[示例][1]

  [1]: http://jsfiddle.net/3rL7vgoc/
英文:

You can do it this way:

.ui-state-highlight > .jqgrid-rownum{color: red !important}

Edit: Example

huangapple
  • 本文由 发表于 2023年5月10日 21:48:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/76219225.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定