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

Source: Internet
Author: User

x-ua-compatible is a setting for IE8, and for browsers other than IE8, this difference differs from content= "ie=7" in whether the page contains <! The doctype> directive, like the standard mode for Windows Internet Explorer 7, is used. and content= "IE=EMULATEIE7" mode follows <! doctype> instructions. For most Web sites, it is the preferred compatibility mode.

Currently IE8 is still in beta, so in order to avoid making the page under IE8 error, it is recommended to directly IE8 using IE7 to render. That is, add the following code directly to the META tag in the header of the page:

1.<meta http-equiv= "x-ua-compatible" content= "ie=7"/>

So that we can make the page in the IE8 inside the normal performance!

Browser market share of the fierce competition, to web design developers to bring compatibility design trouble. There are several mainstream versions of IE browser, IE6, IE7, IE8 and so on. Of course, using third-party integration tools such as IETester, multi-version IE coexistence solutions, can facilitate code debugging. But we always need to find a way to save time and effort.

X-ua-compatible is a special file header tag for the IE8 version that specifies different page rendering modes for IE8. Since the current IE6 and IE7 usage rates are still high, it is important to consider enabling the IE8 version of the X-ua-compatible compatibility mode.

The various compatibility mode code examples are as follows:

<meta http-equiv= "x-ua-compatible" content= "ie=5"/>

It's like using the Quirks mode of Windows Internet Explorer 7, which is similar to how Windows Internet Explorer 5 displays content.

<meta http-equiv= "x-ua-compatible" content= "ie=7"/>

Whether the page contains <! or not The doctype> directive uses the standard rendering mode of Windows Internet Explorer 7.

<meta http-equiv= "x-ua-compatible" content= "ie=8"/>

The standard rendering mode for IE8 is turned on, but since the x-ua-compatible file header supports only IE8 or more, it is equivalent to redundant code.

<meta http-equiv= "x-ua-compatible" content= "Edge"/>

Edge mode notifies Windows Internet Explorer to display content in the highest-level available mode, which in effect destroys lock mode.

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

EmulateIE7 mode notifies Windows Internet Explorer to use <! The doctype> directive determines how the content is rendered. Standard mode directives are displayed in Windows Internet Explorer 7 Standard mode, while Quirks mode directives are displayed in IE5 mode. Unlike IE7 mode, EmulateIE7 mode follows <! doctype> instructions. For most Web sites, it is the preferred compatibility mode.

At this stage, the IE8 version to the market is not long, the share is not high. Therefore, it is recommended to consider a schema that is compatible with older versions.

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

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.