[英]floating <thead> in an overflow hidden div
我制作了一个带有固定表头的表,该表头在到达表的底部时停止。 我把它放到一个有overflow: hidden;
的div中 overflow: hidden;
。 我有一切可以工作的地方,但并不是我所喜欢的100%。
<div class="container">
<table class="tableWithFloatingHeader">
<thead>
<tr>
<th>table1 col header</th>
<th>table1 col header</th>
</tr>
<tr>
<th>table1 col header2</th>
<th>table1 col header2</th>
</tr>
</thead>
<tbody>
.............
</tbody>
</table>
</div>
问题是:
我似乎也无法在<thead>
获得所有内容来向下滚动。 只有第一行(第一<tr>
)。
只有 <th>
在div可见应该向下滚动时可以看到。
'left': '20px'
) 这是我的JSFIDDLE的链接
这是我的控制器的html
<div id="compare-table-controller">
<a href="javascript:void(0);" class="carousel-control left disabled " data-control="prev">‹</a>
<a href="javascript:void(0);" class="carousel-control right " data-control="next">›</a>
</div>
更改width: 700px
到width: 100%
您可以更改宽度值(百分比值)等left
值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.