【发布时间】:2017-04-05 05:52:29
【问题描述】:
当表格在 overflow-x 中滚动时,如何在引导程序中固定 td 宽度 当我的表格滚动或列太大时,表格 td 宽度不起作用。
<div style="overflow-x: auto;" class="row show-grid">
<table class="table table-bordered table-responsive">
<thead>
<tr>
<th style="width: 30px">Name</th>
<th style="width: 30px">Total Budget</th>
<th style="width: 30px">Total Achievement</th>
<th style="width: 30px">Total Variance</th>
<th style="width: 30px">Last Month Target</th>
<th style="width: 30px">Last Month Achievement</th>
<th style="width: 30px">Last Month Variance</th>
<th style="width: 30px">Current Month Target</th>
<th style="width: 30px">Current Month Achievement</th>
<th style="width: 30px">Current Month Variance</th>
<th style="width: 30px">Rest Of The Month Target</th>
<th style="width: 30px">Next Month Target</th>
<th style="width: 30px">Remarks Before Meeting</th>
</tr>
</thead>
<tr>
<td>Total</td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
<td><input type="text" class="form-control"></td>
</tr>
</table>
【问题讨论】:
标签: html-table bootstrap-table