* { zoom : 1 ; }
* { behavior : url ( "css/iepngfix.htc" ); }
.class { background : none ; filter : progid : DXImageTransform.Microsoft.AlphaImageLoader ( src= '/images/png-image.png' , sizingMethod= 'scale' ); }
html>body .class { } head+body .class { } html:first-child .class { }
html>/**/body { }
*|html .class { } html:not([lang*=""]) .class { }
<!--[if ]> <link href= "styles.css" rel= "stylesheet" media= "all" /> <![endif]--> <!--[if !]> <link href= "styles.css" rel= "stylesheet" media= "all" /> <![endif]--> /* - , ! */ /* : IE – IE lt IE v – (less than) IE, v lte IE v – (less than or equal) IE, v, gte IE v – (greater than or equal) – IE, v gt IE v – (greater than) – IE, v. */
<!--[if IE 6]> <link href= "ie6.css" rel= "stylesheet" media= "all" /> <![endif]--> /* IE6 */ <!--[if IE 7]> <link href= "ie7.css" rel= "stylesheet" media= "all" /> <![endif]--> /* IE7 */ <!--[if IE 8]> <link href= "ie8.css" rel= "stylesheet" media= "all" /> <![endif]--> /* IE8 */
.class { padding : 4em ; border : 1em solid red ; width : 30em; width /**/ : /**/ 25em ; } /* IE padding + border */
.class { min-width : 500px ; width : expression ( document.body.clientWidth < 500? "500px" : "auto" ); } /* IE padding + border */
.class { min-width : 500px ; max-width : 750px ; width : expression ( document.body.clientWidth < 500? "500px" : document.body.clientWidth > 750? "750px" : "auto" ); } /* IE padding + border */
.class { min-height : 100% ; height : auto !important ; height : 100% ; }
* html .class { } /* , html- , IE6 */ /* quirks-mode, IE6 IE7. */ *:first-child+html .class { } /* IE 7 (first-child) */ *+html .class { } /* IE 7 */ *:first-child+html .class { } /* IE 7 */ html>body .class { } /* IE 7 */ html>/**/body .class { } /* ( IE 7) */ /* : .class { background:red } *html .class { background:green } IE6 , IE6 - */
.class { _background : #F00 ; } .class { -background : #F00 ; } .class { c\olor : #F00 ; } /* a, b, c, d, e, f */
>body { background : #F00 ; } /* body IE7 */ html* { background : #F00 ; } /* html. IE7 */ -,.class { background : #F00 ; } .class { background : #F00 !important! ; } /* !important. IE7 */
.class { background : #F00\0/ ; } /* body IE7 */
.class { *background : #F00 ; } .class { //background : #F00 ; } .class { background : #F00 !ie ; } /* !important */
#class[id=class] { color : #F00 ; } @-moz-document url-prefix () { .class { color : #F00 ; } } *>.class { color : #F00 ; }
.class, x:-moz-any-link, x:only-child { color : #F00 ; }
body:empty .class { color : #F00 ; } #class[id=CLASS] { color : #F00 ; } html>/**/body .class, x:-moz-any-link { color : #F00 ; }
html>/**/body .class, x:-moz-any-link, x:default { color : #F00 ; }
body:nth-of-type(1) .class { background : #000 ; }
@media all and (-webkit-min-device-pixel-ratio:10000), not all and ( -webkit-min-device-pixel-ratio : 0 ) { .style { background : #F00 ; } }
@media all and ( min-width : 0px ) { .class { color : #F00 ; } }
@media all and ( min-width : 1px ) { { } .class { color : #F00 ; } }
@media all and ( min-width : 1px ) { .class { color : #F00 ; } }
@media all and ( width ) { .class { color : #F00 ; } }
@media all and ( min-width : 0px ) { head~body .class { color : #F00 ; } }
body:first-of-type .class { color : #F00 ; } html:root*.class { color : #F00 ; } body:first-of-type .class { color : #F00 ; } body:first-of-type .class { color : #F00 ; }
@media screen and ( -webkit-min-device-pixel-ratio : 0 ) { .class { color : #F00 ; } } /* Opera Safari */
Source: https://habr.com/ru/post/125396/
All Articles