Tips for making CSS compatible with IE8

Source: Internet
Author: User

In this way, new problems exist. Currently, normal web pages in IE7 may encounter problems in IE8.
Microsoft provides three page resolution modes in IE8
IE8 standard modes: the default most standard mode, which strictly complies with W3C rules
IE7 standards modes: The current webpage resolution mode used by IE7.
Quirks modes: the parsing webpage mode used by ie5. To enable this mode, delete the doctype statement at the top of HTML.
Note: webpages in different modes can frame each other in IE8. Therefore, Dom and CSS rendering in non-mode are different, which may cause many problems.

If your page is compatible with IE7, and you do not want to modify the existingCodeAnd can be used normally in IE8. Microsoft claims that developers only need to add a line of code on the websites currently compatible with IE7 to solve the problem. The Code is as follows:Copy codeThe Code is as follows: <meta http-equiv = "X-UA-compatible" content = "Ie = 7"/>

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.