Css+div excerpt set-css hack

Source: Internet
Author: User

* The following content is an online excerpt

CSS hack:

*html (IE6) Note before the label is added before the attribute *color:red, the attribute is added before the IE6/7 can be resolved

*html{color:green}===html{_color:red;} html{*color:red;}

*+html (IE7) This writing only IE7 can parse, online did not find other only IE7 analytic example, if you found a message to me

*+html{color:red}! =html{*color:red}

* Be careful not to think that it is just ' *,*+ ' in action, there are different problems with the following wording

*span{}*.span{}* #span {}*span #span {}

Please refer to the following wording

*html span{}*html. span{}*html #span {}*html span #span {}

This can achieve the purpose of writing, if you do not believe you can write your own try!

More content Http://baike.baidu.com/view/1119452.htm?fr=aladdin

(*) The above content only holds personal opinion! If there is something wrong, please point out.

Css+div excerpt set-css hack

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.