【发布时间】:2019-12-01 21:07:43
【问题描述】:
用于构建 HTML 表的 Rowspan 和 Colspan。
我希望单行中的前五列没有任何数据,如可编辑图所示。 ,可以使用rowspan或colspan。
只有最后两列是如可编辑图所示。并且在两列之前应该有一行是五列的组合,并且应该是空白的。
<div class="row">
<div class="col-12">
<table>
<thead>
<tr>
<th>Savings for holiday!</th>
<th>Date!</th>
<th>Year</th>
<th>Month</th>
<th>Time</th>
<th>Name</th>
<th>Gender</th>
</tr>
</thead>
<tbody>
<tr>
<td>$100</td>
<td>10/10/2020</td>
<td>2020</td>
<td>January</td>
<td>4:30pm</td>
<td>hrishi</td>
<td>male</td>
</tr>
</tbody>
<tbody>
<tr>
<td>$100</td>
<td>10/10/2020</td>
<td>2020</td>
<td>January</td>
<td>4:30pm</td>
<td>hrishi</td>
<td>male</td>
</tr>
</tbody>
</table>
</div>
</div>
【问题讨论】:
标签: html asp.net-mvc html-table bootstrap-4