What does <meta http-equiv=“X-UA-Compatible” content=“IE=edge”> do?

后端 未结 12 1421
情书的邮戳
情书的邮戳 2020-11-21 06:11

What\'s the difference if one web page starts with

 
 
   
    

        
12条回答
  •  [愿得一人]
    2020-11-21 07:06

    I think this diagram from Microsoft explains all. In order to tell IE how to render the content, !DOCTYPE has to work with X-UA-Compatible meta tag. !DOCTYPE by itself has no affect on changing IE Document Mode.

    http://ie.microsoft.com/testdrive/ieblog/2010/Mar/02_HowIE8DeterminesDocumentMode_3.png

提交回复
热议问题