无法强制网站不在 IE7 中呈现在 IE8 中

发布于 2024-10-07 09:43:27 字数 180 浏览 0 评论 0原文

我有一个网站要在 IE8 中进入 IE7 模式,但我不希望它成为这样。

我尝试添加元标记来强制它,但 IE 在服务器上时只是忽略它。 我还尝试将其添加到 Web.config 和服务器的根 Web.config 中。

任何人都可以提供帮助,因为该网站在 IE8 中的 IE7 模式下无法正确呈现,而我们使用 IE8

I have a webiste that is going into IE7 Mode in IE8 and I dont want it to be

I've tryed adding the meta tag to force it but IE just ignores it when on the server.
I've also tried adding it to the Web.config and the root Web.config of the server.

Can anyone help as the site does not render correctly under IE7 mode in IE8 and we use IE8

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

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

发布评论

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

评论(1

我的奇迹 2024-10-14 09:43:27

添加元标记或任何其他配置更改不会对您有帮助。您的标记不符合 XHTML 标准,并且其他一些标记验证也失败,因此 IE8 触发怪异模式并进入 IE 7 模式。您需要修复您的标记。

尝试通过 http://validator.w3.org/dev/tests/ 运行您的页面那应该对你有帮助。

Adding meta tag or any other configuration change won't help you. Your markup is not adhering to XHTML standards and some other markup validation is also failing hence IE8 is triggering quirks mode and going to IE 7 mode. You need to fix your markup.

Try running your page through http://validator.w3.org/dev/tests/ and that should help you.

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