gpt4 book ai didi

header - 在 IE 上包装 jqGrid 列标题的问题

转载 作者:行者123 更新时间:2023-12-04 13:06:28 25 4
gpt4 key购买 nike

我在我的页面中使用 jqGrid,我修改了 ui.jqgrid.css 文件来包装列标题,如下所示:

.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}

.ui-th-column,.ui-jqgrid .ui-jqgrid-htable th.ui-th-column{
white-space:normal;
}

它在所有浏览器中都可以正常工作,但 IE 除外!我尝试了 IE7 和 IE8,但问题仍然存在。

最佳答案

尝试另外使用

.ui-th-div-ie {
white-space:normal !important;
height:auto !important;
}

更新 :在我看来,与其使用所有这些样式,不如使用以下一种样式:
th.ui-th-column div{
white-space:normal !important;
height:auto !important;
padding:2px;
}

它似乎在所有浏览器中都能很好地工作。查看示例 here .

更新 2 :有关该问题的更多信息和更多演示,您可以在 the answer 中找到.

关于header - 在 IE 上包装 jqGrid 列标题的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3641400/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com