当它引用IE = edge,chrome = 1时,什么是X-UA兼容? [英] What is X-UA-Compatible when it references IE=edge,chrome=1?

查看:130
本文介绍了当它引用IE = edge,chrome = 1时,什么是X-UA兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b

 < meta http 

-equiv =X-UA-Compatiblecontent =IE = edge,chrome = 1/>

阅读


IE =边缘告诉Internet Explorer使用该版本的IE可用的最高模式。 Internet Explorer 8可以支持多达IE8模式,IE9可以支持IE9模式等等。


但是 chrome = 1 tag?

这是Google的Chrome Frame 浏览器插件。

ChromeFrame可以安装在各种版本的IE浏览器中(尤其适合老年人使用版本与现代网络功能无法很好地发挥作用)。它本质上是在IE浏览器内运行chrome浏览器。



对于meta标签,IE应该运行在标准模式(最新版本边缘) - 如果存在,则激活chrome帧。

我通常为IE的旧版本做一些条件浏览器,允许用户安装插件作为选项。

更多此处:
Chrome框架API a>



(请注意,Google Chrome Frame不再受支持)


I just saw this meta tag in the wild and was wondering it does and why it's used?

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

Reading the documentation on About.com, it says:

"IE=edge" tells Internet Explorer to use the highest mode available to that version of IE. Internet Explorer 8 can support up to IE8 modes, IE9 can support IE9 modes and so on.

But what about the chrome=1 tag?

解决方案

It's for Google's Chrome Frame browser add-on.

ChromeFrame can be installed on various versions of IE (especially handy for older versions that don't play nicely with modern web features). It essentially runs the chrome browser inside of IE.

In the case of the meta tag, IE should run in standards mode (most current edition "Edge") - and activate chrome frames if it exists.

I usually do some conditional browser stuff for older versions of IE, allowing the user to install the add-on as an option.

More here : chrome frame API

(Keep in mind that Google Chrome Frame is no longer supported)

这篇关于当它引用IE = edge,chrome = 1时,什么是X-UA兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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