哪个 X-UA-Compatible 优先?Http-header 还是 Meta-tags? [英] Which X-UA-Compatible takes precedence? Http-header or Meta-tags?

查看:26
本文介绍了哪个 X-UA-Compatible 优先?Http-header 还是 Meta-tags?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如问题所述.如果您的 HTTP 标头和文档上的元标记中都有 X-UA-Compatible,并且它们发生冲突,那么 IE 会尊重哪一个?

As the question states basically. If you have X-UA-Compatible in both your HTTP headers and a meta tag on your document, and they conflict, which one gets respected by IE?

推荐答案

TL;DR:元标记获胜

我在这里找到了以下(更新的)流程图

I found the following (updated) flowchart here (link is broken) and associated blog post that provides an explanation of how IE9 determines document mode:

这篇关于哪个 X-UA-Compatible 优先?Http-header 还是 Meta-tags?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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