bootstrap table 怎么自適應(yīng)寬度
1 回答

慕田峪4524236
TA貢獻(xiàn)1875條經(jīng)驗(yàn) 獲得超5個(gè)贊
<div class=table-responsive">
<table class="table text-nowrap">
<thead>
<tr>
<th> ... </th>
.... </tr>
</thead>
<tbody>
<tr>
<td> ... </td>
.... </tr>
..... </tbody>
</table>
</div>
看得明白吧,最外層的DIV引用bootstrap定義把table包含起來(lái),在table上定義不換行,要不然會(huì)出現(xiàn)滾動(dòng)條
- 1 回答
- 0 關(guān)注
- 2880 瀏覽
添加回答
舉報(bào)
0/150
提交
取消