在一个table中,设置了class,并且对应的样式设置了td的高度时,在其嵌套的table中的td高度不能设置大于父table的td的高度。
只有一种方法可以设置,如下:
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan="12" nowrap align="center" class="tdContent2" style="height:5 !important">dd</td>
</tr>
<tr>
<td nowrap style="height:5 !important"></td> //每列都要设置
<td nowrap style="height:5 !important" width="100%">$!obj.getEvaScore()</td>
</tr>
<tr>
<td nowrap valign="top">评价信息:</td>
<td valign="top">$!obj.getEvaInfo()</td>
</tr>
</table>