客户的站点在 IE8 中处于 Quirks 模式,但对我来说默认为标准模式
该网站在 IE8 的标准模式下使用严格的文档类型对我来说渲染得很好。他们也有 IE8,我认为它是在 Quirks 模式下为他们渲染的。
为什么它会以 Quirks 模式呈现给他们而不是其他人?难道是他们的兼容性视图设置?我指示他们取消选中“以兼容模式显示 Intranet 站点”
和 “以兼容模式显示所有网站”
。
如果这不起作用,还有其他想法吗?
The site renders fine for me in IE8 in Standards mode using a strict doctype. They have IE8 as well and I think it's rendering in Quirks mode for them.
Why would it render in Quirks mode for them and not anyone else? Could it be their Compatibility View Settings? I gave them instructions to uncheck "Display Intranet sites in Compatibility Mode”
and “Display all websites in Compatibility Mode”
.
If this doesn't work is there any other ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当在本地网络上渲染站点时,IE 默认为 Quirks 模式,但在来自 localhost 时则为标准模式。尝试在 head 标签的顶部添加一个元标签。
IE defaults to Quirks mode when rendering a site on a local network, but standards when from localhost. Try adding a meta tag at the top of your head tag.
当您说“认为它正在以怪异模式渲染”时,您为什么这么认为?如果您在页面上按 F12,您会在文档模式的开发人员工具工具栏中看到什么?
“以兼容模式显示 Intranet 站点”将以 IE7 标准模式(而不是 IE8 或 IE9 标准)显示标准模式站点,而 Quirks 模式站点将继续以 Quirks 模式呈现。
When you say that you "think it's rendering in quirks mode"-- why do you think that? If you hit F12 on the page, what do you see in the Developer Tools toolbar for the Document Mode?
"Display Intranet sites in Compatibility Mode" will show Standards Mode sites in IE7 Standards Mode (rather than IE8 or IE9 Standards), and Quirks mode sites will continue to render in Quirks mode.