Internet Explorer compatibility

Source: Internet
Author: User

As front-end web developers, the most unfortunate thing is to constantly debug the display effects of various browsers. I prefer Firefox browser for development and debugging, for me who do not know much about CSS, the style adjustment of IE is very big at first glance. It is even more difficult for teams without art engineers.

Let's get back to today's topic. for IE to be backward compatible with the old website, the document mode of IE7 is automatically located, and IE7 is the most difficult version to be compatible. Without a professional front-end, the system can only be compatible with IE8. Users can open the interface without seeing anything. After finding a feasible solution online for a long time, they can finally find a feasible solution. That is, the default IE document mode used to locate the document in Meta.

Specific settings can refer to the http://blog.useasp.net/archive/2013/05/29/x-UA-compatible-defining-document-compatibility-emulate-ie-specific-version-to-display-document.aspx

<HTML>
<Head>
<! -- Mimic Internet Explorer 7 -->
<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7">
<Title> test the simulated IE7 browsing mode </title>
</Head>
<Body>
<! -- Here is the content of your website -->
</Body>
</Html>

If you do not consider compatibility with IE7 or earlier versions, you can set
<Meta http-equiv = "X-UA-compatible" content = "Ie = 8, 9, 10">

 

 

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.