Duplicate empty header occur in datatable when enabling scrollX or scrollY when using Google Chrome

后端 未结 10 1068
猫巷女王i
猫巷女王i 2021-02-06 00:09

I have a datatable in my program. And I want it to be scrollable horizontally so what I did was like this:

var tableI = $(\'#table_data\').DataTable({
    \"bLe         


        
10条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 00:41

    The solution was simple in my case. Just include this on your css:

    /* Override sorting header --> DataTable Bug */
    .dataTables_scrollBody > table > thead > tr {
        visibility: collapse;
        height: 0px !important;
    }
    

提交回复
热议问题