我在调整最后一行时遇到问题。我希望最后一行包含两个大小相同的td
。
<table>
<tr>
<th >Monthly Savings</th><th>Monthly Savings</th><th>Monthly Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td><td>$100</td>
</tr>
<tr>
<td colspan="2">February</td>
<td colspan="2">$80</td>
</tr>
</table>
答案 0 :(得分:0)
删除此colspan
中的td
<td colspan="2">February</td>
<td>February</td>
table, td{border:solid 1px red;}
&#13;
<table>
<tr>
<th >Monthly Savings</th><th>Monthly Savings</th><th>Monthly Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td><td>$100</td>
</tr>
<tr>
<td >February</td>
<td colspan="2">$80</td>
</tr>
</table>
&#13;
<强> Updated Demo 强>
答案 1 :(得分:0)
<table>
<tr>
<th>Monthly Savings</th>
<th>Monthly Savings</th>
<th>Monthly Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td colspan="2">$80</td>
</tr>
</table>
这是你期待的吗?