< meta HTTP-EQUIV = "x-ua-compatible" content = Meaning of "ie=edge,chrome=1"/>

Source: Internet
Author: User

x-ua-compatible is God horse?

X-ua-compatible is a proprietary <meta> attribute of IE8, which tells IE8 which version of IE to use to render Web pages in the HTML

Why do you use x-ua-compatible?

When IE8 just launched, many web pages due to the problem of refactoring, unable to adapt to the higher level of the browser, so use the x-ua-compatible tag force IE8 to be rendered in a low-version manner.
Using this code, developers do not have to consider whether the Web page is compatible with IE8 browser, as long as the Web page in IE6, IE7 performance.

<http-equiv= "x-ua-compatible"  content= "Ie=emulateie7"/ >


Use this code to use the edge. Mode edge mode tells IE to render documents in top-level mode, which means that any version of IE is rendered in the most advanced standard mode supported by the current version, avoiding the effects of version upgrades. Simply put, what version of IE is used in the version of the standard mode rendering.

<http-equiv= "x-ua-compatible"  content= "Ie=edge"> 

Use the following code to force IE to use Chrome Frame rendering

<http-equiv= "x-ua-compatible"  content= "chrome=1" >

The best compatibility Mode scenario:

<http-equiv= "x-ua-compatible"  content= "ie=edge,chrome=1" >

Ps:

To prevent failure, the x-ua-compatible is best followed by the head, without any nonstandard labels.

More detailed, more basic introduction can refer to the URL:

Http://www.cnblogs.com/nidilzhang/archive/2010/01/09/1642887.html

< meta HTTP-EQUIV = "x-ua-compatible" content = Meaning of "ie=edge,chrome=1"/>

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.