如何使用 Bootstrap 制作固定表格单元格,并隐藏 bootstrap.overflow?我试过这个,但数据垂直向下:
table {
table-layout: fixed;
}
table th,
table td {
overflow: hidden;
}
我有 10 列和这样的样式:
<table class="table table-bordered">
<thead class="mbhead">
<tr class="mbrow">
<th style="width:10px"></th>
<th style="width:10%;">A</th>
<th style="width:10%;">B</th>
<th style="width:10%;">C</th>
<th style="width:10%;">D</th>
<th style="width:10%;">E</th>
<th style="width:10%;">F</th>
<th style="width:10%;">G</th>
<th style="width:10%;">H</th>
<th style="width:10%;">I</th>
<th style="width:10%;">J</th>
</tr>
</thead>
<tbody>
//other contents...
</body>
</table>