IE8 compatibility settings

Source: Internet
Author: User
Use X-UA-compatible to set the IE8 compatibility mode

X-UA-compatible
Is a newly added setting for IE8, which is not recognized by browsers other than IE8.
Content = "Ie = 7" whether or not the page contains <! Doctype> commands, such as Windows Internet
Explorer
7 standard mode. The content = "Ie = emulateie7" Mode follows <! Doctype> command. For most websites, it is the preferred compatibility model.
.

Currently, IE8 is still in the beta version. To avoid page errors under IE8, we recommend that you use IE7 for rendering. That is, directly in the header of the page
Add the following to the meta tag:Code:

1. <meta http-equiv = "X-UA-compatible" content = "Ie = 5"/>

For example, if the quirks mode of Windows Internet Explorer 7 is used
Internet Explorer 5 displays content in a similar way.

2. <meta http-equiv = "X-UA-compatible" content = "Ie = 7"/>

Whether or not the page contains <! Doctype> commands all use the standard mode of Windows Internet Explorer 7.

3. <meta http-equiv = "X-UA-compatible" content = "Ie = 8"/>

4. <meta http-equiv = "X-UA-compatible" content = "edge"/>

Edge mode notifies Windows Internet Explorer to display content in the highest available mode, which breaks the "Lock" mode.

5. <meta http-equiv = "X-UA-compatible"
Content = "Ie = emulateie7"/>


Emulateie7 mode notifies Windows Internet Explorer <! Doctype>
Command to determine how to present the content. Standard mode commands are displayed in Windows Internet Explorer 7 standard mode, while quirks mode commands are displayed in ie5
Mode Display. Unlike IE7, emulateie7 follows the <! Doctype> command. For most websites, it is the preferred compatibility mode.

Appendix: today, we see another article that says that when X-UA-compatible is not added, it is locked to IE7 by default.

In this way, we can make the page behave normally in IE8!

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.