CSShack skills for cssie6ie7ff _ experience exchange

Source: Internet
Author: User
Many articles about CSSHACK are mentioned in jb51.net. CSSer must master the simplest hack skills about IE6, IE7, and FF. FF Browser
. Test {
Height: 20px;
Background-color: orange;
}
Internet Explorer 7
* + Html. test {/* IE7 */
Height: 20px;
Background-color: blue;
}

Internet Explorer 6

* Html. test {/* IE6 */
Height: 20px;
Background-color: black;
}

The above CSS Code shows that FF is the most obedient browser. In IE6 and IE7, if you want to use HACK, you must add the class tag html to the front.
This is a good memory. IE6 adds * html, while IE7 adds * + html, which implies adding a version.
The advantage of css hack for class and id is that it does not take into account the order before and after, and is easy for management and acceptance by other people. It can also be used to control versions similar to JS browsers.

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.