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.