简体   繁体   English

竞争X-UA兼容的元标记

[英]Competing X-UA-Compatible meta tags

One of our websites is run by an offsite company. 我们的网站之一由一家异地公司运营。 We noticed that they had the following meta tag by default on all of our pages: 我们注意到,默认情况下,他们在所有页面上都具有以下元标记:

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

When we asked them to update this, they added the meta tag 当我们要求他们进行更新时,他们添加了meta标签

    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />

beneath it. 下面 When I pull this up in IE9 or IE10 it still defaults to IE8. 当我在IE9或IE10中使用它时,它仍默认为IE8。 (I did check to see if this was a setting in my version of IE, and other websites display correctly.) My intuition is that the meta tags are competing. (我确实检查了这是否是我的IE版本中的设置,并且其他网站显示正确。)我的直觉是meta标签之间存在竞争。 Does anyone know if this would be the case? 有谁知道会是这种情况吗?

Additionally, if we have them remove the IE=8 tag, will it render correctly? 另外,如果我们删除了IE=8标签,它将正确呈现吗?

Yeah, there's no reason to have both tags. 是的,没有理由同时拥有两个标签。 Only one will be used and if it's the first one then the second is pointless. 仅会使用一个,如果是第一个,则第二个是没有意义的。 The only reason for the IE=8 one to be there in the first place would be if there were issues in IE9 and 10. IE = 8首先出现的唯一原因是,如果IE9和10中存在问题。

It's not necessarily bad to have the IE=8 one in there. IE = 8并不一定很糟糕。 If your site works and there are no speed issues in IE then it could be more trouble that it's worth to have them solve the problems that caused them to use IE8 compatibility mode. 如果您的站点正常运行,并且IE中没有速度问题,那么可能值得麻烦的是,让他们解决导致他们使用IE8兼容模式的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM