Set browser mode and IE 9 document mode in IE 9

I need to force IE browser mode and IE IE IE IE 9 document. Now I set "X-UA-Compatible" to "IE = 9" in my title tag, but it does not affect the document mode change to IE 7 / IE 8.

Force the Browser Mode and Document Mode of IE 9 to IE 9

My site should only be compatible with IE 9, and not with other versions of IE. In addition, I looked through and studied most of the questions that were asked here, and through blogs (msdn), but nothing works for me (before the moderators close this as a duplicate question). Can any of you tell me about this?

+6
source share
2 answers

IF you have already configured tags (X-UA ..) that force it into the appropriate document mode and browser mode.

It looks like you are setting the document mode in the IE dev tool console, this overrides everything that you put as tags.

This chart explains how IE determines which modes are displayed, and the dev toolbar takes precedence.

Edit / Update

Unfortunately, it seems that the above link has been removed. Now here is an alternative

+10
source

Well, make sure that the tag ("X-UA -...") that you put should be the first tag inside the title of your document. Secondly, make sure that the html displays (by the property of the viewing source) in the browser, and also contains as the first tag ("X-UA -...") in the header section.

+10
source

Source: https://habr.com/ru/post/914041/


All Articles