简体   繁体   English

如果 IE9 遇到 X-UA-Compatible 标头说要模拟 IE10,它会怎么做?

[英]What will IE9 do if it encounters X-UA-Compatible header that says to emulate IE10?

We want IE11 to emulate IE10 so we're going to add a X-UA-Compatible directive to IE=EmulateIE10 .我们希望 IE11 模拟 IE10,因此我们将向IE=EmulateIE10添加一个 X-UA-Compatible 指令。 But if our server is hit by IE9, how will IE9 interpret that directive?但是如果我们的服务器被 IE9 攻击,IE9 将如何解释该指令?

Looking at https://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx , IE9 will operate in IE9 Standards mode if it sees the X-UA-Compatable set to IE10)查看https://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx ,如果看到 X-UA-Compatable 设置为 IE10,IE9 将在 IE9 标准模式下运行)

("If the browser supports the header, but not any of the specified document modes, it will use the highest supported document mode to display the webpage.") (“如果浏览器支持页眉,但不支持任何指定的文档模式,它将使用支持的最高文档模式来显示网页。”)

You can check this (if you have IE 9 lying around, which thankfully I do not) by going to the page and bringing up developer tools to see what mode it was set to and why (well, assuming developer tools in IE 9 worked the same way as it does with 10+)你可以检查这个(如果你有 IE 9,幸好我没有)通过转到页面并调出开发人员工具来查看它设​​置为什么模式以及为什么(好吧,假设 IE 9 中的开发人员工具工作与 10+ 相同的方式)

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

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