当jqGrid表头内容过多无法全部展示时,添加以下css实现表头自动换行。
<style type="text/css"> /* jqgrid 表头自动换行 */ th.ui-th-column div{ white-space: normal !important; height: auto !important; } </style>
本文介绍了一种解决jqGrid表头内容过多时显示不全的问题,通过添加特定CSS样式实现表头自动换行,确保所有字段名都能清晰展示。
当jqGrid表头内容过多无法全部展示时,添加以下css实现表头自动换行。
<style type="text/css"> /* jqgrid 表头自动换行 */ th.ui-th-column div{ white-space: normal !important; height: auto !important; } </style>
转载于:https://www.cnblogs.com/LFBlog/p/6605553.html

被折叠的 条评论
为什么被折叠?