Slickgrid-IE7中的自动换行列标题 [英] Slickgrid - Wordwrap column headers in IE7
本文介绍了Slickgrid-IE7中的自动换行列标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以在IE7中自动换行Slickgrid列标题?我大约有20岁以上 网格中的所有列-几乎所有列都有2个或更多的单词.
is there a way to word-wrap Slickgrid column headers in IE7? I have about 20+ columns in the grid - and almost all columns have 2 or more words.
感谢您的帮助!
推荐答案
我通过编辑2个CSS标签解决了这个问题:
I solved this by editing 2 css tags:
在slick-default-theme.css
中:
.slick-header-columns {
white-space: pre !important;
height: 45px;
}
此处的height
可根据您的需要进行调整.这样很好,可以显示3行.
The height
here is adjustable to your needs. This was good to display 3 lines.
在slick.grid.css
中,将以下标记上的height
设置更改为100%
:
In slick.grid.css
, change the height
settings on the below tag to 100%
:
.slick-header-column.ui-state-default {
...
height: 100%;
...
}
这篇关于Slickgrid-IE7中的自动换行列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文