<table cellspacing="0">
<tbody>
<tr>
<td>姓名</td>
<td></td>
<td>性别</td>
<td></td>
<td>年龄</td>
<td></td>
<td>婚否</td>
<td></td>
<td>籍贯</td>
<td></td>
</tr>
<tr>
<td>住址</td>
<td colspan="3"></td>
<td>所属单位</td>
<td colspan="5"></td>
</tr>
</tbody>
</table>
css:
tbody,tr,td{border:1px solid #000}
td{width:70px}
td:not(:first-child){
border-left:none
}
tr:not(:first-child) td{
border-top:none
}
大概的样子,其他的你慢慢弄
表格单元横跨两列的表格:<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td colspan="2">January</td>
</tr>
<tr>
<td colspan="2">February</td>
</tr>
</table>
表格单元横跨两行的表格:
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100.00</td>
<td rowspan="2">$50</td>
</tr>
<tr>
<td>February</td>
<td>$10.00</td>
</tr>
</table>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)