jqGrid实现表头自动换行

当jqGrid表头内容过多无法全部展示时,添加以下css实现表头自动换行。

<style type="text/css">
        /* jqgrid 表头自动换行 */
    th.ui-th-column div{
            white-space: normal !important;
            height: auto !important;
     }
</style>

 

posted @ 2017-03-23 15:48  littleFatty  阅读(1208)  评论(0编辑  收藏  举报