Add a x-ua-compatible tag to a website

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.