dataTable标头在使用scrollY时与主体不匹配

时间:2018-06-24 16:02:36

标签: jquery html css datatables

我正面临问题数据表,使用滚动Y:PPHeight时,其标题与正文不匹配。 任何帮助将不胜感激,我已经使用了许多解决方案,但对我不起作用。尝试生成包装宽度,但问题仍然存在。

**此处共享代码**

let tblHtmlOverlay = $('#tblHtmlOverlay').DataTable({
dom: "Bfrtip",
bSort: false,
destroy: true,
ServerMethod: "POST",
lengthChange: true,
responsive: false,
deferRender: true,
pageResize: false,
fixedHeader: true,
colReorder: true,
rowReorder: true,
data: A_Data, // We're assuming the Data matches the table construct
paging: false,
scrollY: PPHeight, /// This is resulting in an error. Appears to be a DataTables bug
"scrollX": true, "scrollCollapse": true,
columns: (this.hasHeader === true) ? AtlasPaste.tableHeaders.withheader : AtlasPaste.tableHeaders.thearray
, "language": {
"emptyTable": "Processing your data..."
}
});

enter image description here

0 个答案:

没有答案