Set the browser version (ie version) of the client that accesses the item by default

Source: Internet
Author: User

In a project development deployment, Discover browser incompatibility and make the user experience better without processing compatibility (ie browser)

Let's set the browser version of the client to access the project by default

The comparison is shown below for different versions of IE:

IE5, IE6:

IE7 under:

IE8 under:

IE9 under:

Version IE10 and above:

The above is the same item in different IE version of the display effect (where the animation effect only on the ie10+ can be displayed), in order to not solve the IE Sakamoto compatibility, we can deploy the project when the default client browser in a version to browse the page, if the client browser is version 10 or more, Can only be compatible with versions below 10!

Here we can add the following code to the configuration file Web. config when we deploy the project

<system.webserver>    <Httpprotocol>          <customheaders>                <Clear/>                <Addname= "X-ua-compatible"value= "ie=10" />          </customheaders>    </Httpprotocol></system.webserver>
View Code

Then the client is IE10 to browse the page by default ~ ~

Set the browser version here to distinguish different effects on the same page ~ ~

Set the browser version (ie version) of the client that accesses the item by default

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.