假设我有以下几点:使用Bootstrap使一列固定为水平滚动?
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
/* ... more table headers */
</tr>
</thead>
<tbody>
<tr>
<td>ID 1</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>ID 2</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
/* ... more table rows */
</tbody>
</table>
我想添加更多的表头,并最终使该表可滚动水平。是否有可能使第一列(包含ID的列)保持固定并始终可见,无论用户水平滚动多少?
我想创建使用jQuery插件已经在这里实现:http://www.novasoftware.com/Download/jQuery_FixedTable/JQuery_FixedTable.aspx(现场演示这里:http://www.novasoftware.com/Download/jQuery_FixedTable/jQuery_FixedTable_Demo.htm)
嘿棘手,非常感谢你为你的迅速和非常有益的反应! – Sparks