DIV+CSS layout must know CSS conditional annotation theory and Practice 1th/2 Page _ Experience Exchange

Source: Internet
Author: User
browser's conditional annotation theory, use the following example to explain this problem
X Html
The following code is a test of the effect of a conditional comment statement in Microsoft's IE browser
Copy Code code as follows:

<!--[If ie]>
<! [endif]-->
<!--[if IE 5]>
<! [endif]-->
<!--[if IE 5.0]>
<! [endif]-->
<!--[if IE 5.5]>
<! [endif]-->
<!--[if IE 6]>
<! [endif]-->
<!--[if IE 7]>
<! [endif]-->

The following code is a conditional comment that runs in non-IE browsers
Copy Code code as follows:

<!--[if! ie]><!-->
<!--<! [endif]-->
Ultimately works in non IE and special IE browsers
(or use the LTE LT or GT GTE to determine, such as:
<!--[If LTE IE 6]>
Information displayed under IE 6
<! [endif]-->
).

<!--[if IE 6]><!-->
or a non IE browser <!--<! [endif]-->

From:http://www.cssplay.co.uk/menu/conditional.html
Preview model
The above mentioned conditional annotation, which is to judge the browser type, and then to define what browser to display what content.
The Dropmenu (Pull-down menu) model is derived from Cssplay, which is made by the author's numerous studies and repeated tests. I think that this model to practice the principle of conditional annotation.
Let's look at one of the simplest models.
Current 1/2 page 12 Next read the full text
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.