jQuery Datatables Header Misaligned With Vertical Scrolling

前端 未结 20 2513
北海茫月
北海茫月 2020-12-15 05:05

I\'ve posted this in the datatables.net forums, but after a week, still no response. Hopefully I can find help here...

I\'m using datatables version 1.8.1 and am ha

20条回答
  •  一整个雨季
    2020-12-15 05:17

    We can handle this using css and minor changes in sDom.

    Add following class in your css file

    .scrollDiv {
        max-width:860px; //set width as per your requirement
        overflow-x:scroll;  
    }
    

    replace your 't' in sDom attribute of table with <"scrollDiv"t> and remove scrollX attribute of table

    Save and Enjoy ! :)

提交回复
热议问题