表格想用bootstrap的,表头fixed之后,宽度会改变,有没有办法不用JS实时计算就可以实现表头固定呢?
固定表头下的效果如下:http://jsbin.com/tazikosema/edit?html,cs...
<p class="table-responsive">
<table class="table">
<thead>
<tr>
<th>表头</th>
<th>表头</th>
<th>表头</th>
</tr>
</thead>
<tbody>
<tr>
<td>内容</td>
<td>内容</td>
<td>内容</td>
</tr>
……
</tbody>
</table>
</p>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
https://segmentfault.com/a/1190000004713...
你好像已经看过了
bootstrap的网格系统不就是干这个的吗?
能不能看下你现在的效果呢
自己写一个position:fixed;样式就行了....