Change CSS of rownumber value in jqGrid

2019-09-11 14:33发布

I have changed the property of the jqGrid with rownumbers:true. Hence it is displaying the row numbers. Now I want to change the CSS of that. How can I do that?

Enter image description here

In the above image, the CSS of the records are changed, but the CSS of the row number is not changed. Now I want to change the CSS of the row number also. How can I do that?

1条回答
放我归山
2楼-- · 2019-09-11 15:24

If I understand correct your requirements you can include the following CSS style to remove the background-image and background-color inherited from the CSS class ui-state-default:

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

The following demo uses additionally the styles from the answer on your previous question. The displayed results looks like on the following picture:

enter image description here

查看更多
登录 后发表回答