$('#example').DataTable({
lengthMenu: [2, 4, 6],
ordering: false,
serverSide: false,
processing: false,
responsive: true,
lengthChange: true,
autoWidth: true,
searching: false,
scrollY: '200px',
scrollX: false,
scrollCollapse: true,
bInfo : false,
paging: false,
lengthChange: false
});
当我删除scrollY和scrollCollapse时,它修复了问题,但我的表无法滚动
1条答案
按热度按时间g52tjvyc1#
删除“scrollY”、“scrollColapse”属性,然后为div标签设置“max-height”和“overflow”样式
example here