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

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

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

 
 
   
    

        
12条回答
  •  不知归路
    2020-11-21 07:07

    Just for completeness, you don't actually have to add it to your HTML (which is unknown http-equiv in HTML5)

    Do this and never look back (first example for apache, second for nginx)

    Header set X-UA-Compatible "IE=Edge,chrome=1"
    
    add_header X-UA-Compatible "IE=Edge,chrome=1";
    

提交回复
热议问题