IE6 双倍边距的解决方法

来源:互联网 发布:开源的java web项目 编辑:程序博客网 时间:2024/04/29 22:06
<script type="text/javascript"><!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

IE不同版本对CSS的解释都有略微差异,因为这点差异也使很多站长头大,今天说一个IE6双边距的BUG,先看代码:

<style type="text/css">
body {margin:0}
div { float:left; margin-left:10px; width:200px; height:200px; border:1px solid red }
</style>
http://www.corange.cn/archives/2008/10/2043.html