在 IE 上包装 jqGrid 列标题的问题
我在页面中使用 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,问题仍然存在。
I'm using jqGrid in my pages, I modified the ui.jqgrid.css file to wrap the column headers like this:
.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}
.ui-th-column,.ui-jqgrid .ui-jqgrid-htable th.ui-th-column{
white-space:normal;
}
It works fine in all of the browsers but IE! I tried IE7 and IE8 and the problem is still out there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试另外使用
更新:在我看来,最好使用以下一种样式,而不是所有这些样式:
它似乎在所有浏览器中都工作得很好。请参阅此处的示例。
更新2:有关该问题的更多信息和更多演示,您可以在答案。
Try to use additionally
UPDATED: It seems to me, that instead of all this styles it would be better to use one following:
It seems work very good in all browsers. See an example here.
UPDATED 2: More information and more demos about the problem you can find in the answer.
这应该有效:
我尝试了奥列格的回答。但是,虽然有包装,但高度并没有增加以适应内容物。所以我按照上面的方法修改了css并成功了。我认为这会对像我这样的人有所帮助。 :)
This should work:
I tried Oleg's answer. But, though there was wrapping, height did not increase to fit the contents. So I modified the css as above and did work. I thought it will help someone out there like me. :)