Today for you to explain the div+css if conditions hack knowledge and tutorial examples, friends can learn from our example. I hope the following case will be of some help to you.
ie CSS if condition hack-css hack
For you to explain hack knowledge and tutorial examples of if condition in div+css
Directory
CSS If hack conditional syntax
Div+css If instance
If condition hack summary
CSS If hack conditional syntax
<!--[if ie]> only IE <! [endif]-->
Only all win systems are self-identifying with IE
<!--[if IE 5.0]> only IE 5.0 <! [endif]-->
Only IE5.0 can identify
<!--[if GT ie 5.0]> only ie 5.0+ <! [endif]-->
IE5.0 shifting IE5.5 can be identified
<!--[if LT ie 6]> only ie 6-<! [endif]-->
Only IE6 recognizable
<!--[if GTE ie 6]> only ie 6/+ <! [endif]-->
IE6 and ie5.x below IE6 are recognizable
<!--[if LTE IE 7]> only IE 7/-<! [endif]-->
Only IE7 recognizable
<!--[if GTE ie 7]> only ie 7/+ <! [endif]-->
IE7 and IE6, ie5.x below IE7 are recognizable
<!--[if IE 8]> only ie 8/-<! [endif]-->
Only IE8 recognizable
2. div+css Example Tutorial
CSS instance one:
Let IE6-IE8 display different content, the DIV CSS code is as follows:
<! DOCTYPE html>
Note: The above experiment only experiment ie6-ie8 under if HACK. More exciting please focus on the PHP Chinese web other related articles!
Related reading:
How to make icon effect with CSS3
How to make the switch effect of irregular picture using CSS3
How to use CSS3 to make a light. Display text animation