CSS for Ie6,ie7,firefox

Source: Internet
Author: User
Css

When we use CSS to build the Web page, the difference between IE6 and Firefox can be solved with!important (this method as little as possible), but IE7 does not seem to recognize!important, and there are some differences between it and IE6. The inconsistency of the browser always makes people have a headache!

The Ie6\ie7\firefox hack code is given below:

#example {color: #333;}     /* Firefox */* HTML #example {color: #666;}     /* IE6 */*+html #example {color: #999;} * IE7 * *

Then in Firefox font color display for #333,ie6 under the font color display for #666,ie7 under the font color shown as #999, they do not interfere with each other.



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.