Which X-UA-Compatible takes precedence? Http-header or Meta-tags?

ぃ、小莉子 提交于 2019-12-28 03:54:07

问题


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?


回答1:


TL;DR: The meta tag wins

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



来源:https://stackoverflow.com/questions/9128739/which-x-ua-compatible-takes-precedence-http-header-or-meta-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!