The css condition annotation theory that must be known for div + css layout and the browser condition annotation theory are used in the following example to explain this problem.
(X) HTML
The following code is used to test the effect of the condition comment statement in Microsoft's IE browser.
The Code is as follows:
The following code is a condition comment for running in a non-IE browser
The Code is as follows:
You are not using Internet Explorer
It eventually works in non-IE and special IE browsers
(Or use lte lt or gt gte to determine, for example:
).
You are using Internet Explorer version 6
From: http://www.cssplay.co.uk/menu/conditional.html
Preview Model
The condition annotation mentioned above is to determine the browser type and then define what content is displayed under the browser.
This dropmenu (drop-down menu) model comes from cssplay, which is made after many researches and repeated tests by the author. I want to use this model to illustrate the principle of conditional annotation.
First look at a simple model