jqGrid: how to change cell padding

前端 未结 6 1550
梦谈多话
梦谈多话 2021-02-09 08:31

I\'m using jqGrid3.6.5 on google hosted jQueryUI1.8.2 and jQuery1.4.2

I want to change the cell padding of a jqGrid. For testing purposes I want to set it to 10px all ar

6条回答
  •  礼貌的吻别
    2021-02-09 08:51

    I have found the solution and am a bit ashamed of not finding it sooner :P

    Apparently the grid headers ARE th's but not in the same table as the grid itself. So by changing #grid-id th {...} to body .ui-jqgrid .ui-jqgrid-htable th {...} I got it to work as expected.

提交回复
热议问题