Add a x-ua-compatible tag to a website
Method One:
<meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7"/>
Such as:
<meta http-equiv= "x-ua-compatible" content= "ie=edge,chrome=1"/>
Ie=edge tells IE to render the webpage using the latest engine, chrome=1 can activate the chrome Frame
Add a method to a Web page
Add the above code below
Method Two:
If you are using an Apache server, you can configure the httpd.conf file:
①, open
LoadModule Headers_module modules/mod_headers.so
Ii
If you want to work on all sites under Apache, add them in httpd.conf
<ifmodule headers_module>
Header Set X-ua-compatible:ie=emulateie7
</IfModule>
If you just want to work on a particular site, add a new entry in the htaccess file
<ifmodule mod_setenvif.c>
<ifmodule mod_headers.c>
Browsermatch MSIE IE
Header set x-ua-compatible "Ie=edge" Env=ie
Browsermatch Chromeframe GCF
Header Append x-ua-compatible "chrome=1" ENV=GCF
</IfModule>
</IfModule>
Add a x-ua-compatible tag to a website