这个HTML table里面那个table怎么弄啊.
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/07/27 04:18:01
这个HTML table里面那个table怎么弄啊.
![](http://img.wesiedu.com/upload/e/8d/e8d34f69fb99da683dd7db91156e36d2.jpg)
![](http://img.wesiedu.com/upload/e/8d/e8d34f69fb99da683dd7db91156e36d2.jpg)
![这个HTML table里面那个table怎么弄啊.](/uploads/image/z/5338230-6-0.jpg?t=%E8%BF%99%E4%B8%AAHTML+table%E9%87%8C%E9%9D%A2%E9%82%A3%E4%B8%AAtable%E6%80%8E%E4%B9%88%E5%BC%84%E5%95%8A.)
<table width="600" height="300" border="0">
<tr>
<td width="300" height="300" style="background-color:#C24AA1; text-align:center;">
300*300
</td>
<td width="300" height="300">
<table width="300" border="0" style="background-color:#6CBB3E; text-align:center; font-size:10px;">
<tr>
<td height="150" width="150" style="background-color:#9F0;">
150*150
</td>
<td height="150" width="150">
<table width="150" border="0" style="font-size:10px; text-align:center;">
<tr>
<td height="75" width="75" style="background-color:#F00;">
75*75
</td>
<td height="75" width="75">
75*75
</td>
</tr>
<tr>
<td height="75" width="75">
75*75
</td>
<td height="75" width="75" style="background-color:#F00;">
75*75
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="150" width="150" style="background-color:#F00;">
150*150
</td>
<td height="150" width="150" style="background-color:#F0F;">
150*150
</td>
</tr>
</table>
</td>
</tr>
</table>具体尺寸自己改,给你方法就行,方法如下:
一个大的表格,嵌套小的表格,小的表格再嵌套更小的表格!解决请采纳!
<tr>
<td width="300" height="300" style="background-color:#C24AA1; text-align:center;">
300*300
</td>
<td width="300" height="300">
<table width="300" border="0" style="background-color:#6CBB3E; text-align:center; font-size:10px;">
<tr>
<td height="150" width="150" style="background-color:#9F0;">
150*150
</td>
<td height="150" width="150">
<table width="150" border="0" style="font-size:10px; text-align:center;">
<tr>
<td height="75" width="75" style="background-color:#F00;">
75*75
</td>
<td height="75" width="75">
75*75
</td>
</tr>
<tr>
<td height="75" width="75">
75*75
</td>
<td height="75" width="75" style="background-color:#F00;">
75*75
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="150" width="150" style="background-color:#F00;">
150*150
</td>
<td height="150" width="150" style="background-color:#F0F;">
150*150
</td>
</tr>
</table>
</td>
</tr>
</table>具体尺寸自己改,给你方法就行,方法如下:
一个大的表格,嵌套小的表格,小的表格再嵌套更小的表格!解决请采纳!