我的表體是在以下小提琴https://jsfiddle.net/zj36whmo/給滾動條來表
<table class="table table-striped">
<thead>
<tr>
<th>Make</th>
<th>Model</th>
<th>Color</th>
<th>Year</th>
</tr>
</thead>
<tbody>
<tr>
<td class="filterable-cell">Ford</td>
<td class="filterable-cell">Escort</td>
<td class="filterable-cell">Blue</td>
<td class="filterable-cell">2000</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
<td class="filterable-cell">Escort</td>
<td class="filterable-cell">Blue</td>
<td class="filterable-cell">2000</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
<td class="filterable-cell">Escort</td>
<td class="filterable-cell">Blue</td>
<td class="filterable-cell">2000</td>
</tr>
<tr>
<td class="filterable-cell">Ford</td>
<td class="filterable-cell">Escort</td>
<td class="filterable-cell">Blue</td>
<td class="filterable-cell">2000</td>
</tr>
</tbody>
</table>
我想單獨給TBODY滾動條。我已經看到了很多關於stackoverflow的問題,讓tbody單獨滾動。但是,他們混淆了寬度。我試着修改選項,但我失去了滾動。請幫助我
檢查這一個[固定表頭(http://stackoverflow.com/questions/35071546/fixed-table-header) – Abood
看一看到http://計算器。 com/questions/17067294/html-table-with-100-width-with-vertical-scroll-inside-tbody – gaetanoM