【发布时间】:2015-03-24 00:32:14
【问题描述】:
我正在尝试实现fixed column using datatables。他们给出的例子看起来不错。我有implemented the same code in jsfiddle,但是当我左右滚动时,我的标题会互相流血。我该如何解决?
$(document).ready(function() {
var table = $('#example').DataTable( {
scrollY: "300px",
scrollX: true,
scrollCollapse: true,
paging: false
} );
new $.fn.dataTable.FixedColumns( table, {
leftColumns: 1,
rightColumns: 1
} );
} );
【问题讨论】:
标签: jquery datatables jquery-datatables datatables-1.10