我用2个TABLE来设计一个布局,代码如下
<div>
<table border= "0px " width= "300px " id= "T1 " style= "height:300px " cellpadding= "0px " cellspacing= "0px ">
<tr style= "height:100px ">
<td >
</td>
</tr>
<tr style= "height:200px ">
<td valign= "top ">
<table id= "T2 " width= "100px " style= "height:100% ">
<tr style= "height:100px ">
<td >
</td>
</tr>
<tr>
<td >
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
我是想第一个TABLE即T1分为2行,第1行100px,第2行200px,这个好像没有问题,问题 是我在T1中的第2行新加入个TABLE,即T2,把T2的高度设为和T1的第2行高度一样,即200px,然后在T2中再分2行,每行100px.