ie6 3 px bug

[css] #floatholder { position: absolute; left: 30px; top: 5em; border: 4px solid; width: 240px; background: #ec8; } #floatbox { float: left; width: 65px; height: 25em; border: 6px solid #68f; color: #46d; /*margin:0 -3px 0 0;*/ } #floatbox { width: 77px; } #textwrapper { border: 2px solid #000; } #jog-box { border: 4px solid #f66; border-left-width: 4px; } [/css] [html] <div id="floatholder"> <div id="floatbox">Float</div> This text touches the blue float directly, and has the 3px space on the left. <p id="textwrapper"> This text is wrapped in a paragraph (black border), and see, the space is still there, deep inside the &lt;p&gt;! </p> <div id="jog-box"> This box is margined on the left, the width of the float and more, to keep it separate from the float. Still, the space continues, until.. hey! Where'd it git to?! Well, it appears that: no adjacent float, no 3px space. </div> <div style="clear: both;"></div> </div> [/html] 解决方法,#floatbox右margin设置为-3px;也就是把CSS注释符号

转载于:https://www.cnblogs.com/7hihi/archive/2010/08/10/2564192.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值