Research on IE "+" CSS hack

Source: Internet
Author: User

Expression: + property: Value

Test environment: ie5, IE6, IE7, ff1.5, ff2.0, opera 9, Safari 2

Test results: ie5, IE6, and IE7 browsers are recognized; ff2.0, opera 9, and Safari 2 browsers are not recognized.

Conclusion:We can use "+" to Implement CSS hack only recognized by IE.

For example, to realize the width of PX in IE, and the width of PX in other browsers, you can use "+" hack, as shown below:

# Hack {width: 500px; + width: 480px;/* Only ie */}

This should be attributed to IE's recognition of some special characters. You can also test other special characters such as: "> ","-","@"...... There may be more gains.

PS: Some friends may think of "_" hack, but they are different because "_" is not recognized in IE7.

Additional reading: Internet Explorer 7 CSS hacks

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.