Slickgrid - Wordwrap column headers in IE7

梦想的初衷 提交于 2019-12-11 14:36:19

问题


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.

Thanks for the help!


回答1:


I solved this by editing 2 css tags:

In slick-default-theme.css:

.slick-header-columns {
    white-space: pre !important;
    height: 45px;
}

The height here is adjustable to your needs. This was good to display 3 lines.

In slick.grid.css, change the height settings on the below tag to 100%:

.slick-header-column.ui-state-default {
    ...
    height: 100%;
    ...
}



回答2:


Works perfect!!!

.slick-header-columns {
    white-space: pre !important;
    height:100%;
}

If two grids are created and only one of them has got long header text.



来源:https://stackoverflow.com/questions/9098580/slickgrid-wordwrap-column-headers-in-ie7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!