开发者

IE8 acted weird on Ubuntu LTS server

I recently faced an IE8 bug where the margin collapse b/w two horizontal elements. I solved it by replacing the margin with padding.

But the weird thing was that it was only specific to a "Ubuntu LTS server"! It was working fine in my staging site (Cent OS).

Any idea how it 开发者_JAVA技巧was only faced in that server and that server only?


This would need much, much more information to be answerable reliably, like a real world example.

However, I'm going to guess your staging site was on localhost, or some other address that IE treats as local. In that case, the "smart defaults" kick in (emphasis mine)

A large number of line-of-business websites are Internet Explorer 7 capable today. In order to preserve compatibility, Internet Explorer 8 ships with smart defaults based on zone evaluation. In the default state, all sites on the public internet display in Internet Explorer 8 Standards mode (Compatibility View off) and all intranet websites display in Internet Explorer 7 Standards mode (Compatibility View on).

...

If you navigate to sites on your local intranet like http://myPortal and http://sharepoint/sites/mySite, Internet Explorer 8 identifies itself with a User Agent string of ‘7’, Version Vector of ‘7’, and displays webpages that trigger standards mode in Internet Explorer 7 Standards mode. This combination allows webpages that worked correctly in Internet Explorer 7 to continue to do so in IE8.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜