Problem with wrapping jqGrid column headers on IE

后端 未结 2 1437
我在风中等你
我在风中等你 2020-12-01 15:14

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 !i         


        
相关标签:
2条回答
  • 2020-12-01 15:57

    Try to use additionally

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

    UPDATED: It seems to me, that instead of all this styles it would be better to use one following:

    th.ui-th-column div{
        white-space:normal !important;
        height:auto !important;
        padding:2px;
    }
    

    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.

    0 讨论(0)
  • 2020-12-01 15:57

    This should work:

    th.ui-th-column div{
        height:auto!important;
    }
    
    .ui-jqgrid .ui-jqgrid-htable th div {
        white-space:normal !important;
        height:auto!important;
        padding:2px;
    }
    

    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. :)

    0 讨论(0)
提交回复
热议问题