Configure the browser compatibility mode for IIS

Source: Internet
Author: User

As we all know, Microsoft's Internet Explorer team has been committed to building IE8 as the most industry-compliant browser. Unfortunately, not all websites currently agree with these standards. If you are worried that your website will not work normally in IE8 standard mode, the following methods may be helpful to you:

1. You can add the following meta header to all the pages on your website.

<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7"/>

This tag allows your website pages to run in IE8 compatibility mode, regardless of whether the browser compatibility mode is set. For a website page, this may be a good solution!

2. Configure IIS and add HTTP Header


This method can easily access the website in IE8 compatibility mode without modifying the website source code. Of course, you can also modify the config configuration file of the website to achieve this:

<? XML version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System. webserver>
<Httpprotocol>
<Customheaders>
<Add name = "X-UA-compatible" value = "Ie = emulateie7">
</Customheaders>
</Httpprotocol>
</System. webserver>
</Configuration>

 

3. If your website runs in an Apache environment, the following article details how to configure it.

Http://blogs.msdn.com/hanuk/archive/2008/08/28/apache-httpd-configuration-for-ie7-standard-mode-rendering-in-ie8.aspx

For more information about the Internet Explorer 8 compatibility model, visit Microsoft's official website:

The http://msdn.microsoft.com/en-us/library/cc288325 (vs.85). aspx

 

<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7"/>

<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie8"/>

<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie9"/>

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.