I am so cool, I made the site, it seems to work in all browsers, but here I’m zoozhu in IE (any) and I have a panic, the whole layout has flown down, and then I think let me go to mail.ru everything is fine. Then I open my site in IE f12, I have the "Document Mode: Compatible", and on mail.ru the document mode is standard.

I will clarify the situation for particularly tricky, I noticed the “compatibility” mode for many users on the machine is turned on, some test from this mode is on mail.ru, I can’t find the code for something like this algorithm on the Internet - “if you don’t open IE compatible mode ". If it seems ridiculous to many, go to any site you know after you have logged in and turn on IE in F12 compatible document mode, for example, even mail.ru completely flies. How to put a stub on this "document mode compatible"?

    3 answers 3

    <meta http-equiv = "X-UA-Compatible" content = "IE = edge">

    More details here http://www.xiper.net/manuals/html/meta-tags/http-equiv/x-UA-Compatible.html

    • But I didn’t score a fool in Google, it doesn’t work ( - Afimida
    • Wherever I put it, even in the right place, as it is written in the rules, it is ignored - Afimida
    <!DOCTYPE html> 

    or

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> 

    Or another DOCTYPE that suits you best, specify at the very beginning of the html-file and IE will not open your page in compatibility mode. To enforce the mode in spite of the doctype, as already mentioned above, there is a tag

     <meta http-equiv="X-UA-Compatible" content="IE=версия" /> 

    5 - Forced switching to IE5 mode, the doctype is ignored. 7 - Forced switching to IE7 mode, the doctype is ignored. 8 - Forced switching to IE8 mode, the doctype is ignored. 9 - Forced switching to IE9 mode, the doctype is ignored. EmulateIE7 - If there is a doctype, it switches to IE7 mode, otherwise it switches to compatibility mode. EmulateIE8 - If there is a doctype, it switches to IE8 mode, otherwise it switches to compatibility mode. EmulateIE9 - If there is a doctype, it switches to IE9 mode, otherwise it switches to compatibility mode. Edge - Sets the document to the newest available mode. For version 8.0, this is IE8 mode, for version 9.0, this is IE9 mode.

      Here is the hack for IE: <!--If IE