IE compatibility issues, various types of css hack code (for test purposes), csshack

Source: Internet
Author: User

IE compatibility issues, various types of css hack code (for test purposes), csshack

At present, most enterprises require IE7 + or IE8 + browser compatibility, and few require IE6.

IE6:

_ Margin-top: 20px;

IE6 + IE7:

* Margin-top: 20px;
+ Margin-top: 20px;

IE6 +:

Margin-top: 20px \ 9;

IE8 +:

Margin-top: 20px \ 0;

IE9:

/*: Root can also be recognized in Google Chrome, SO \ 9 */: root. item {margin-top: 20px \ 9;} must be added ;}

IE8:

/* There is no hack code for IE8, but it can be combined to implement */margin-top: 10px \ 0;: root. item {margin-top: 20px \ 9 ;}

 

This is just a headache. It can solve the IE compatibility problems encountered in production, but it is not clear which attributes cause the compatibility problems. It is necessary to understand the CSS attributes parsed by the browser, and try to avoid these pitfalls during production, improve development efficiency.

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.