IE9根本不关心"X-UA兼容"元标记 [英] IE9 does not at all care about 'X-UA-Compatible' meta tag

查看:84
本文介绍了IE9根本不关心"X-UA兼容"元标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上找不到关于此的任何信息,因此我在这里寻求帮助:

I can't find anything about this on the internet, so I'm looking for help here:

出于某些技术原因,我尝试将IE9强制为IE8呈现模式,使用以下meta标记作为<head>之后的第一行:

For some technical reasons I try to force IE9 into IE8 rendering mode, using the following meta tag as the first line right after <head>:

<meta content="IE=8" http-equiv="X-UA-Compatible">

由于某种原因,无论我尝试什么,我们办公室中的所有IE9都只能呈现IE9样式.当我查看IE9中的DevTool(F12)时,它表明IE8是页面默认值",但是它仍然坚持在DevTools中设置的渲染模式.没有办法影响这一点.我们甚至删除并重新安装了IE9,因为我们以某种方式认为,一旦将DevTool设置用于呈现模式,IE9就会永远坚持下去...

For some reason all the IE9s in our office just render IE9 style, no matter what I try. When I look into the DevTool (F12) from IE9, it shows me that IE8 is the "page default", but it still sticks to the rendering mode set in the DevTools. There is no way to influence that. We even did a delete and re-install of IE9, because we thought somehow once you use the DevTool setting for rendering mode, IE9 sticks to that forever...

这与强制IE9进入任何其他模式的原因无关.在这种特殊情况下,这是我们的首选.

This is not about the reasoning about forcing IE9 into any other mode. In this special case it is our preferred choice.

让我发疯的是IE9应该根据我从那里读出的所有信息来尊重meta标签,但是出于某些奇怪的原因,我们的IE9对此并不在意.

What's driving me mad is that IE9 should respect the meta tag according to all the information I read out there, but for some weird reason our IE9s don't care about it.

是否有人对阻止IE9像IE8一样表现出什么想法?

Has anybody out there any idea on what could prevent IE9 from behaving like IE8?

最诚挚的问候, 罗马.

Best regards, Roman.

推荐答案

在我看来,一切正常.如果将IE8标识为页面默认值",但选择了IE9,则浏览器很可能会记住您明确决定在IE9中进行渲染的决定.只需手动选择页面默认设置",然后浏览器就应遵循此规则.

It sounds to me like everything was working properly. If IE8 was identified as the "page default," but IE9 was selected, it's likely the browser is remembering your explicit decision to render in IE9. Just manually select the "page default," and the browser should respect that from hence forth.

只要将IE8识别为页面默认值,一切都很好.只需告诉您的团队切换回该特定域/页面上的默认页面即可. IE不会在谁可以设置文档模式的问题上与您抗衡.如果您以前从列表中选择了IE9标准,即使页面的默认设置为IE9标准,它也会对此予以尊重.

As long as IE8 is being identified as the page default, all is well. Just tell your team to switch back to the page default on that particular domain/page. IE won't fight you over who gets to set the Document Mode. If you have previously selected IE9 Standards from the list, it will respect that, even when the page's default is otherwise.

这篇关于IE9根本不关心"X-UA兼容"元标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆