我曾在一个网站一个表中的一个虚拟主机上,它看起来很好,现在我移动到另一个主机和表搞砸了HTML/CSS问题
HTML:
<div class="right">
<table>
<tbody>
<tr>
<tdcolspan="3">
<img alt="" src="../App_Themes/image1.png">
</td>
</tr>
<tr>
<td>
<img alt="" src="../App_Themes/image2.png">
</td>
<td>
<iframe class="iframe" scrolling="no" frameborder="0" allowtransparency="yes" src="site.com">
Your browser does not support iframes
</iframe>
</td>
<td>
<img alt="" src="../App_Themes/image3.png">
</td>
</tr>
<tr>
<td colspan="3">
<img alt="" src="../App_Themes/image4.png">
</td>
</tr>
</tbody>
</table>
</div>
发生了什么事是,有各行之间的(约)2px的差距,我不明白为什么,我用下面的CSS尝试,但没有运气:
.right tr td {padding: 0; margin:0px;}
.right tr {border-spacing: 0px; padding:0px; margin:0px;}
的图像形成围绕iframe的边框和图像1 2px以上2和3,图像4 2px的下面的图片2和3
如何能简单的东西像这样的突破,只是因为我移动到另一台主机?
我试过了thirtydot的建议,但这是什么修复它 – Nick 2011-03-23 11:59:38