<div id="container">
<div id="content">
<div class="halfLeft"></div>
<div class="halfRight"></div>
</div>
</div>
#container{ width:960px;margin:auto; background-image:url(../img/contentbg.jpg);}
.halfLeft{font: 1.5em BrushcutRegular; background:url(../img/halfbg.png) no-repeat;margin:12px 0px 12px 12px;float:left;width:468px;height:336px;}
.halfRight{font: 1.5em BrushcutRegular; background:url(../img/halfbg.png) no-repeat;margin:12px 12px 12px 0px;float:right;width:468px;height:336px;}
出於某種原因,這使得#container的對IE6的左邊添加一個額外的12像素...div容器額外餘量IE6
任何想法有什麼不對?
您是否嘗試過刪除CSS屬性,直到問題消失?此外,通常更好的做法是將左側和右側的div左移,即使它看起來不符合直覺。 –