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

Source: Internet
Author: User

---restore content starts---

X-ua-compatible is a setting that has been added since IE8 and is not recognized for browsers below IE8. You can specify the compatibility mode setting for a Web page by setting the value of x-ua-compatible in Meta.

The mode precedence specified in the Web page is higher than the mode specified in the server (via HTTP Header).

Web compatibility mode is not only set directly on the Web page, but can also be set on the server


Understanding Web Compatibility Mode

IE8 supports several file compatibility modes, which have different characteristics and affect the way content is displayed.

emulate IE8 mode instructs IE to use <! Doctype> instructions to determine how to compile the content. The Standards Mode command is displayed as IE8 standards mode and quirks mode is displayed as IE5 mode. Different from IE8 mode,emulate IE8 mode takes <! seriously doctype> instructions.


emulate IE7 mode instructs IE to use <! Doctype> instructions to determine how to compile the content. The Standards Mode command is displayed as IE7 standards mode and quirks mode is displayed as IE5 mode. Different from IE7 mode,emulate IE7 mode takes <! seriously doctype> instructions. This is the most recommended compatibility mode for many Web pages.


IE5 mode compiles like IE7 's quirks mode display, and is very similar to what is shown in IE5.


IE7 mode compiles content like IE7 's standards mode display, whether or not the webpage contains <! doctype> instructions.


IE8 mode provides the highest support for industry standards, including the cascading Style Sheets Level 2.1 specification and the selectors API, with limited support W3C cascading Style Sheets Level 3 specification (working Draft).

edge mode instructs IE to display content in the highest mode currently available. When using IE8, it is equivalent to IE8 mode. if (assuming) future releases of IE that support a higher compatibility mode, pages using edge mode will display content using the highest mode supported by that version. The same pages will still be displayed as usual when browsing with IE8.

If a specific version of IE support requires more than one compatibility mode, it will be used in the highest available mode listed in the header content properties. You can use this feature to exclude specific compatibility modes, although this is not recommended. For example, the following header excludes IE7 mode.

<meta http-equiv= "x-ua-compatible" content= "ie=5; Ie=8 " /> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> #以上代码IE=edge tells IE to render the page using the latest engine, chrome=1 can activate the chrome Frame. Google Chrome FrameGoogle Chrome Frame, officially the official Chinese name is "Google browser embedded framework." Google Chrome frame is a free Internet Explorer plug-in that Google has launched. Using this plugin, users can browse the Web page in the Chrome kernel rendering via the Internet Explorer user interface. Chrome Frame will inject the latest version of the chrome Webkit kernel and JavaScript engine into IE. The update is now stopped. determine Web page compatibility mode

Document.documentmode

Documentmode is a private property of IE and is supported in ie8+.

The documentmode function will return a value corresponding to the current page of the file compatibility mode, for example, if the page is designated to support IE8 mode,Documentmode will return the value "8".

---restore content ends---

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

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.