开发者

IE6 added a large left offset to my element?

开发者 https://www.devze.com 2023-02-09 02:29 出处:网络
I have the below in FF 开发者_运维百科 But in IE6, I get In debugBar, I get Whats with the large offset.

I have the below in FF

开发者_运维百科

IE6 added a large left offset to my element?

But in IE6, I get

IE6 added a large left offset to my element?

In debugBar, I get

IE6 added a large left offset to my element?

Whats with the large offset.

http://jsfiddle.net/eteQ7/2/


There is a bug in IE6 known as "Doubled Float-Margin Bug". IE6 will double a left margin applied to a floated block element.

In order to avoid this behavior, you should use the fix suggested in this article, adding a display:inline; property to the element, e.g. in a CSS stylesheet loaded only for IE6 using conditional comments.

0

精彩评论

暂无评论...
验证码 换一张
取 消