gpt4 book ai didi

css - IE8 在 Ubuntu LTS 服务器上表现怪异

转载 作者:太空宇宙 更新时间:2023-11-04 05:22:51 25 4
gpt4 key购买 nike

我最近遇到了一个 IE8 错误,其中边距折叠 b/w 两个水平元素。我通过用填充替换边距来解决它。

但奇怪的是它只特定于“Ubuntu LTS 服务器”!它在我的暂存站点 (Cent OS) 中运行良好。

知道它是如何只在那个服务器和那个服务器上面对的吗?

最佳答案

这需要更多信息才能可靠地回答,例如真实世界的示例。

但是,我猜测您的暂存站点位于 localhost 或 IE 视为本地的其他地址。在这种情况下,"smart defaults" kick in (强调我的)

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.

关于css - IE8 在 Ubuntu LTS 服务器上表现怪异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6094088/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com