How to Use CSS hack for IE6, IE7, and Firefox

Source: Internet
Author: User
In the past, CSS Code In writing, most of us use it! Important to hack.
Tests in IE6 and Firefox can be displayed normally, and hack technology is successfully applied.
But the newly released IE7 pair! Important can be correctly explained. The page cannot be displayed as required!

Now we can find a good hack Method for IE7: Use "* + html "!
Now you can use IE7 to browse it. It should be okay.

Example:

 

# Example {} {Color:#333; }   /**/ /*Moz*/  
* Html # example {} {Color:#666; }   /**/ /*IE6*/  
* + Html # example {} {Color:#999; }   /**/ /*IE7*/  

In Firefox, the font color is displayed as #333,
In IE6, the font color is displayed as #666,
In IE7, the font color is #999, and 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.