数据表thead和tfoot与tbody不匹配

时间:2017-04-27 11:48:16

标签: html css datatables responsive

我的数据表有问题(使用bootstrap)。为什么thead& tfoot与tbody不匹配 - 在我的uploadet图片上看到它。

<div class="table-responsive">
<table id="myDataTable" class="table table-striped table-bordered" style="table-layout: fixed;overflow:hidden;">

enter image description here

我该怎么做才能和足够100%?

<div class="dataTables_scrollHeadInner" style="box-sizing: content-box; width: 1084px; padding-right: 17px;">

为什么dataTables_scrollHeadInner从17px开始有一个填充权?我在datatables.js中找到了定义

1 个答案:

答案 0 :(得分:0)

如果要在HTML中定义数据表标记,而不是以编程方式确保与主体内的td元素具有相同数量的元素。但是,如果不是这种情况,请向我们展示您的标记和js,我们可以进一步挖掘。