Differentiate between CSShack _ experiences in IE6, IE7, and firefox

Source: Internet
Author: User
Web page layout often requires a part-time multi-browser, so the following csshack can be used, but it is best to use less, have to use the difference IE6 and FF:
Background: orange; * background: blue;
Difference between IE6 and IE7:
Background: green! Important; background: blue;
Difference between IE7 and FF:
Background: orange; * background: green;
Difference FF, IE7, IE6:
Background: orange; * background: green! Important; * background: blue;
Note: Both IE and standard browsers (such as FF) cannot recognize *;
IE6 can recognize *, but cannot recognize it! Important,
IE7 can recognize * and can also recognize! Important;
FF cannot recognize *, but can recognize it! Important;
IE6 IE7 FF
* √ *
! Important × √
--------------------------------------------------------------------------------
Add another underscore "_",
IE6 supports underlines, while IE7 and firefox do not.

So you can also distinguish IE6, IE7, and firefox.
: Background: orange; * background: green; _ background: blue;

Note: No matter what method, the order of writing is firefox's preface, IE7's writing in the middle, and IE6's writing at the end.
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.