How to center a JqGrid

前端 未结 2 2014
旧巷少年郎
旧巷少年郎 2021-01-18 01:46
2条回答
  •  情书的邮戳
    2021-01-18 02:17

    The code of jqgrid has probably changed since the answer of mars 2011. With jqgrid 4.3.1, I had to add the following CSS:

    .center .ui-jqgrid {
        margin-left: auto;
        margin-right: auto;
    }
    

    ".center" finds the table's container, as written in the HTML sample of the question.

提交回复
热议问题