我已经做了一些研究,但我只是想问谁谁知道比我更好的人。
是否真的,设置表格单元格的高度只是作为最小高度?
我知道这是真的在Firefox,但什么其他浏览器这是发生在?
解决方法
简答:是的。我试图加载以下代码:
@H_502_9@<table border="0" style="background-color: yellow;">
<tr style="background-color: green;">
<td>row 0 cell 0</td>
<td>row 0 cell 1</td>
</tr>
<tr style="background-color: green;">
<td height="50">row 1 cell 0</td>
<td>row 1 cell 1</td>
</tr>
<tr style="background-color: green;">
<td style="height: 50px;">row 2 cell 0</td>
<td>row 2 cell 1</td>
</tr>
</table>
两者(高度和样式)在浏览器中工作相同我试过:
> Linux
> Google Chrome 19.0
> Firefox 13.0
> Konqueror 4.8
> Windows
> Google Chrome 19.0
> Firefox 12.0和13.0
> Internet Explorer 8
> Android 2.3.3