Set the default IE rendering mode to the highest (convert)

Source: Internet
Author: User

Many people have upgraded their ie browsers to ie9 or above, so there are a lot of strange things happening at this time. For example, they are now ie9 browsers, however, the document mode of the browser is IE8:

To prevent this situation, we need the following code to make the IE document mode always up-to-date:

<! -- Avoid ie using compatibility mode -->

<MetaHTTP-equiv ="X-UA-compatible"Content ="Ie = edge">

Another method is more optimized:

<MetaHTTP-equiv ="X-UA-compatible"Content ="Ie = edge, chrome = 1">

Why is this code followed byChrome = 1, ThisGoogle Chrome frame (Google embedded browser framework GCF)If the chrome plug-in is installed on some users' computers, you can use IE in any version of the computer.WebKitEngine andV8Engine layout and computation are incredibly powerful. However, if you do not install this plug-in, this code will make ie display the results in the highest document mode. I suggest you use this code, but you can use it without it.

Note link:Http://www.w3cfuns.com/blog-5427801-5399250.html

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.