简体   繁体   中英

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

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: 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:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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