Javascript Datatables固定标题在滚动时显示两次

Javascript Datatables固定标题在滚动时显示两次,javascript,datatables,Javascript,Datatables,以前有人经历过吗?? 只有在我再次初始化表之后才会发生这种情况 if (typeof dataTable === 'undefined') { // if the table doesn't exist LoadIt(startdate, enddate) } else { // if the table exist delete table $("#mytable_wrapper").remove(); $(".mytable_wrapper").dat

以前有人经历过吗?? 只有在我再次初始化表之后才会发生这种情况

 if (typeof dataTable === 'undefined') { // if the table doesn't exist

    LoadIt(startdate, enddate)

} else { // if the table exist delete table

      $("#mytable_wrapper").remove();
      $(".mytable_wrapper").dataTable().fnDestroy();
      LoadIt(startdate, enddate)
}
这是一个截图

在我调整浏览器大小或打开开发人员工具后,它将消失


谢谢

我通过添加表布局进行了修复:已修复到表中