Div+css layout must be aware of CSS conditional annotation theory and Practice 1th/2 Page _ Experience Exchange

Source: Internet
Author: User
Browser conditional annotation theory, using the following example to explain the problem
X Html
The following section of code is the effect of testing conditional comment statements under Microsoft's IE browser

Copy the Code code as follows:









The following code is a conditional comment that runs under a non-IE browser

Copy the Code code as follows:



You are not using Internet Explorer



Ultimately works in non-IE and special IE browsers
(or use LTE LT or GT GTE to judge, such as:


).


You are using Internet Explorer version 6





From:http://www.cssplay.co.uk/menu/conditional.html
Preview model
The above mentioned conditional comments, that is, to determine the browser type, and then define what browser to display what content.
This dropmenu (drop-down menu) model comes from the cssplay, making it a result of repeated research and repeated testing by the author. I think that this model to practice the principle of conditional annotation.
Let's look at one of the simplest models.

  • 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.