【发布时间】:2016-10-27 14:02:19
【问题描述】:
在这里感觉有点傻。我希望第一个 <td> 跨越(大约)70-80% 的表格,第二个和第三个 <td> 将剩余空间分开。
我认为将<th> colspan 设置为 6,然后将第一个 <td> 设置为 4 的 colspan 将允许我设置完成此操作,但它似乎占据了桌子的一半,然后最后 2 个<td> 是不同的宽度。知道如何解决这个问题吗?
HTML
<table class="table table-record no-margin-bottom">
<thead>
<tr>
<th colspan="6" class="table-tab-active--grey font-weight-bold text-md-center">Tasks</th>
</tr>
</thead>
<tbody>
<tr class="bg--lighter-grey txt--darker-blue" ">
<td colspan="4">Lorem Ipsum</td>
<td colspan="1" class="text-uppercase font-weight-bold">Lorem</td>
<td colspan="1" class="font-weight-bold text-uppercase no-padding"><button class="btn btn--orange btn-block">Lorem Ipsum</button></td>
</tr>
<tr class="bg--lighter-grey txt--darker-blue" ">
<td colspan="4">Lorem Ipsum</td>
<td colspan="1" class="text-uppercase font-weight-bold">Lorem</td>
<td colspan="1" class="font-weight-bold text-uppercase no-padding"><button class="btn btn--lighter-grey btn-block">Button</button></td>
</tr>
</tbody>
</table>
【问题讨论】:
标签: html html-table