CSS styles for Firefox IE6 IE7 IE8 hack

Source: Internet
Author: User

CSS can refer to the following definition, note order:

The code is as follows Copy Code
#menu {line-height:23px;} * * Firefox browser to implement this definition
#menu {line-height:26px9;} /*ie6,ie7,ie8 This sentence defines the main cusp to IE8 to hack*/
#menu {*line-height:23px;} /*ie6,ie7 This sentence defines the main cusp to IE7 to hack*/
#menu {_line-height:23px;} /*ie6 Browser First implement the definition of this sentence
or write a sentence
#menu {line-height:23px; line-height:26px9; *line-height:23px; _line-height:23px;}
Or
* HTML #menu {line-height:23px}/* IE6 browser implement this definition * *
*+html #menu {line-height:23px;} * * IE7 Browser to implement the definition of this sentence

Web page to define IE browser alone

All except IE identifiable
all IE identifiable
only IE5.0 can recognize
only IE5.0 and IE5.5 can recognize
IE5.0 and IE5.0 the above version can be recognized
only IE6 identifiable
IE6 and IE6 The following versions recognize
IE6 and IE6 versions that are recognizable
only IE7 recognized
IE7 and IE7 The following versions are recognized
IE7 and IE7 the above versions are recognized

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.