+ -
当前位置:首页 → 问答吧 → IE6测试,浮动后下怎么有间隙?

IE6测试,浮动后下怎么有间隙?

时间:2011-05-02

来源:互联网

在IE6测试中,下面1跟2框中间怎么有间隙,怎么去掉这间隙?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> </head> <body> <div style="width:800px; border:1px solid #9CF; padding:10px;"> <div style="float:left; border:1px solid red;"> <div style="width:200px; height:300px;">1</div> </div> <div style="border:1px solid blue; height:300px; overflow:hidden;">2</div> </div> </body> </html>
 提示:您可以先修改部分代码再运行
[ 本帖最后由 jhsybin 于 2011-5-2 23:12 编辑 ]

作者: jhsybin   发布时间: 2011-05-02

ie6 3px bug

[ 本帖最后由 liufuxiang101 于 2011-5-3 00:31 编辑 ]

作者: liufuxiang101   发布时间: 2011-05-03

经典的IE6 3px问题,简单讲就是对ie6用-3px的边距消除。

作者: iifksp   发布时间: 2011-05-03