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

标签 css ubuntu internet-explorer-8 centos margin

我最近遇到了一个 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/

相关文章:

ubuntu - 触摸: cannot touch "test.list": Permission denied

css - 我可以为 html 元素设置默认的 css 类吗

html - Flexbox 中具有相同高度的双行

html - 如何使 Bootstrap 3 行水平居中?

javascript - 使用功能检测通过点表示法检查对保留字的支持

jquery - css/jquery : Text Fade-In - This should work in IE8, 谁能告诉我为什么它没有?

javascript - 是否有任何支持 Internet Explorer 8 的热图 javascript 库?

html - 如何使侧边栏按钮的填充和边距对齐?

python - 从 Ubuntu 15.04 中删除 Mercurial-common

python - 通过 python 子进程启动 linux 命令不能按预期工作