IE8 在 Ubuntu LTS 服务器上表现得很奇怪

发布于 2024-11-09 13:46:19 字数 151 浏览 4 评论 0原文

我最近遇到了一个 IE8 错误,其中两个水平元素的边距折叠。我通过用填充替换边距解决了这个问题。

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

知道它是如何仅在该服务器中以及仅在该服务器中面对的吗?

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 was only faced in that server and that server only?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心房的律动 2024-11-16 13:46:19

这需要很多很多的信息才能可靠地回答,就像现实世界的例子一样。

但是,我猜测您的临时站点位于 localhost 上,或者 IE 视为本地的其他地址。在这种情况下,“智能默认值”启动(强调我的)

如今,大量业务网站都支持 Internet Explorer 7。为了保持兼容性,Internet Explorer 8 附带了基于区域评估的智能默认值。在默认状态下,公共 Internet 上的所有网站均以 Internet Explorer 8 标准模式显示(兼容性视图关闭),所有 Intranet 网站均以 Internet Explorer 7 标准模式显示(兼容性视图打开)。

...

如果您导航到本地 Intranet 上的网站,例如 http://myPortalhttp://sharepoint/sites/mySite,Internet Explorer 8 使用用户代理字符串“7”、版本向量“7”来标识自身,并显示触发标准模式的网页Internet Explorer 7 标准模式。这种组合允许在 Internet Explorer 7 中正常运行的网页在 IE8 中继续正常运行。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文