html怎样画如图所示table?

如题所述

这就是合并行和列的问题。
合并列:colspan="合并列数"
合并行:rowspan="合并行数"
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-10-31
<table border="1" width="100%" height="100%">
<tr>
<td colspan="5" height="20px">mm</td>
</tr>
<tr>
<td colspan="5" height="20px">mm</td>
</tr>
<tr>
<td colspan="3" height="20px">kk</td>
<td colspan="2" rowspan="3" height="60px">dd</td>
</tr>
<tr>
<td colspan="3" rowspan="2" height="40px">ss</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="5">uu</td>
</tr>
<tr>
<td colspan="5" rowspan="2" height="40px">44</td>
</tr>
</table>本回答被网友采纳
第2个回答  2012-10-31
<table>
<tr><td colspan=2></td></tr>
<tr><td colspan=2></td></tr>

<tr><td colspan=1></td><td colspan=1></td></tr>

<tr><td colspan=2></td></tr>

<tr><td colspan=2></td></tr>

</table>