解决Firefox1.5中表格内图像留白的方法
不知道Firefox是成心还是bug,反正在表格内的图像可能会自动在下面留出一块空白,而同样的代码在ie中显示是正常的。
比如说这样的一段代码:
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img border="0" src="..."></td>
</tr>
</table>
就会出现显示的问题。
解决的办法就是在<img>标记中加上一个align属性。
比如:
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img align="..." border="0" src="..."></td>
</tr>
</table>
No comments:
Post a Comment