答案 0 :(得分:0)
您无法合并倒L形的td。相反,这可以通过调整边框样式来完成。
table {
border-collapse: collapse;
}

<table width="300" border="1px">
<tr>
<td colspan="2" height="30" style="border-bottom: 0">
</td>
</tr>
<tr>
<td width="30" style="border-top: 0">
</td>
<td height="200">
</td>
</tr>
</table>
&#13;
答案 1 :(得分:0)
没有rowspan
或colspan
,:first-child
和+
选择器也可以提供帮助。
no matters the numbers of row or column ;)
table {
border-collapse:collapse;
border:solid;
}
th, td {
min-width:3em;
height:3em;
}
tr td:first-child {
border-right:solid;
}
th + th {
border-bottom:solid
}
<table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>