Understanding JQGrid column width behaviors

前端 未结 6 1604
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 12:39

I have a tree grid with many columns, all with specified width. And boy, it looks terrible since headers are out of sync with columns below, even if I have short data in them.

6条回答
  •  鱼传尺愫
    2021-02-04 13:02

    I had the same issue. It turned out to be the existing, site default, css definitions for padding on table cells. Make sure your padding is consistent between your th and td tags. I put a div around the grid with a class of div, and added the following to my CSS:

    .grid td, .grid th {
        padding: 1pt 1ex !important;
    }
    

提交回复
热议问题