css浮动边距加倍错误(双倍边距BUG)的解决办法

16062011-05-31

如果某条边与浮动方向同向,则向该边上的浮动框应用边距时,边距会增加一倍,西安网站建设团队点墨网络竭诚为您服务。此错误只影响一次或多次浮动的某行中的第一次浮动。

影响: Internet Explorer 6.0

该错误只影响ie而不影响其他浏览器,我们可以考虑用hack来解决!!!

_display:inline;

加入上面这句问题解决

adobe官方解决方法:

Problem

When a margin is applied to a floated box on the same side as the direction the box is floated AND the floated box is the first one inside its containing box, the margin is doubled. (In other words, a left-floated box with margin-left set to move it away from its containing box will be twice as far away from the left edge of the containing box as intended.)

Solution

Specify display: inline; for the affected float.

Detailed description

This bug only reproduces when the floated element''s margin extends in the same direction as the float itself, and is between the float and the container box''s inside edge. Subsequent floats with similar margins won''t reproduce this bug- just the first float in any row of floated elements.

 

通过本文您对西安网站建设有了进一步了解,本公司温馨提醒:找西安做网站公司,请选择手续齐全、业务精、服务好的正规公司。

工商网上亮照

版权所有:西安点墨网络科技有限公司 信息备案编号: 陕ICP备11004160号-1

客户服务电话:029-89640155 18991365125

公司地址:西安市雁塔区朱雀大街紫郡长安F3

Sitemap 网站地图 手机版

办公电话:029-89640155

服务热线:18991365125

客服信箱:vip@dianmo.cc

846461336327

西安点墨网络科技有限公司

版权所有:西安点墨网络科技有限公司 信息备案编号: 陕ICP备11004160号-1