我有一个表格,有很多行,导致使用Bootstrap的“table-responsive”时,滚动条位于屏幕底部之外。要查看溢出到两侧的数据,您必须向下滚动,移动滚动条,然后再向上滚动。
请查看这个fiddle:http://jsfiddle.net/Lq4uk/1/
以下是HTML代码:
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead>
<th>#</th>
<th>Header 1</th>
... (bunch of headers)
</thead>
<tbody>
<tr>
<th>1</th>
<th>Some long text to make this overflow</th>
... (bunch of cells)
</tr>
... (lots more rows)
</tbody>
</table>
如何让水平滚动条始终可见?
或者换个角度看,如何在屏幕上为表格的垂直大小使用最大可用空间?