qq_狂泽_04395574
2017-07-13 18:28
<table class="table table-hover table-bordered">
<thead>
<tr>
<td>列表一</td>
<td>列表二</td>
<td>列表三</td>
<td>列表四</td>
<td>列表五</td>
</tr>
<tr class="danger">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="waring">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="success">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="active">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
</thead>
</table>
<table class="table table-hover table-bordered">
<thead>
<tr>
<td>列表一</td>
<td>列表二</td>
<td>列表三</td>
<td>列表四</td>
<td>列表五</td>
</tr>
</thead>
<tbody>
<tr class="danger">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="waring">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="success">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
<tr class="active">
<td>one</td>
<td>two</td>
<td>three</td>
<td>five</td>
<td>four</td>
</tr>
</tbody>
</table>
因为只对tbody里面内容生效,t 代表table body 代表身体。 head代表头 所以要想生效需要将内容放在tbody中
<thead>是定义表头,主体用<tbody>标签
bootstrap快速入门
100966 学习 · 187 问题
相似问题