2
我正在使用引导程序。我试图使用一个固定的表头,但它没有被修复,它可以滚动。我不想scroll
表头,我想有一个固定的表头。 请帮我解决它。bootstrap表头固定问题
这是我的代码示例:
这是我的代码:
<div class="widget-content">
<div class="container">
<table class="table table-bordered">
<thead>
<th class="text-center"> my</th>
<th class="text-center"> text/line</th>
<th class="text-center">caps/ lock</th>
<th class="text-center">Value</th>
<th class="text-center">Qty</th>
<th class="text-center">other</th>
</thead>
<tbody>
<tr class="dt-picked">
<td class="text-center">
<span style="color:white; font-weight:bold;"> text</span>
</td>
<td class="text-center">
<p>text</p>
</td>
<td class="text-center ">
<p>text</p>
<p>text</p>
</td>
<td class="text-center"> <p>text</p></td>
<td class="text-center b-color-1"><p>text</p></td>
<td>
class="btn btn-mini btn-danger" role="button">Sell</a>
</td>
</tr>
<tr>
<td colspan="4" class="text-right no-stripe">Total Cash</td>
<td class="b-color-1"><p>text</p></td>
</tr>
<tr>
<td colspan="4" class="text-right no-stripe">Total Invested</td>
<td class="b-color-1"><p>text</p></td>
<td colspan="2" class="no-stripe"></td>
</tr>
<tr>
<td colspan="4" class="text-right bold no-stripe">Bottom Line</td>
<td class="b-color-1 bold"><p>text</p></td>
<td colspan="2" class="no-stripe"></td>
</tr>
</tbody>
</table>
</div>
</div>
先生,即时使用'位置:绝对',文字不对齐后,'位置:绝对'或'位置:固定'? – core114
@ core114 jut对文本“text-align:center”使用另一个属性 –