【发布时间】:2014-05-29 13:48:03
【问题描述】:
我有一个包含很多行的表格,这会导致引导程序“表格响应”使滚动条离开屏幕底部。要查看溢出到两侧的数据,您必须滚动到底部,移动滚动条,然后再次向上滚动。
看看这个小提琴,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>
如何使水平滚动条始终可见?
或者,换个角度来看,我怎样才能将屏幕上的最大可用空间用于表格的垂直尺寸?
【问题讨论】:
标签: html css twitter-bootstrap