X-ua-compatible IE Browser Default document mode settings

Source: Internet
Author: User

When making a Web page, IE8 browser when browsing the page, sometimes the document mode default is IE7, resulting in IE8 compatibility is not very good. There is a pattern that IE7 should appear.

The workarounds are as follows:

The methods available in X-ua-compatible are:

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

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

IE5 and IE7 are now out of use.

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

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

The last line is the edge mode. Notifies Windows Internet Explorer to display content in the highest-level available mode.

Most sites now use <meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7" > as a compatible method for IE8.

In order to avoid making the page under IE8 error, it is recommended that the IE8 be rendered directly using IE7.

That is, add the following code directly to the META tag of the header of the page, for example:

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

Plus

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

<meta http-equiv= "x-ua-compatible" content= "IE=EMULATEIE8" >

While using, emulate mode is more important to <! Doctype>,

So for now, <meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7" > as the first choice.


Baidu blog Move, blog source address: http://hi.baidu.com/confidence68/item/00a435f1f53d937f3d198b01

X-ua-compatible IE Browser Default document mode settings

Related Article

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.