Вопрос

<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />

In the above declaration, would IE 10 be forced to render in IE9? I'm not sure what the EDGE would do as it's at the end of the list?

Ian

Это было полезно?

Решение

It renders in IE10 mode. You can check that by including it in a document and opening the F12 tools to see what mode it renders in (shown in the top bar of the tool), or include a script that checks. E.g. with this document https://dl.dropboxusercontent.com/u/444684/tests/X-UA-Compatibletest.html it returns 10.

Looking at the following documentation, it looks like your meta is actually invalid. There they separate modes by a comma and don't repeat the IE token, e.g. <meta http-equiv="X-UA-Compatible" content="IE=7,9,10" > . It also mentions the highest supported mode will be used, so if you include edge, it will always be edge. In that case you don’t get any benefit of using the additional modes, as they’ll never be used.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top