http://css.doyoe.com/
@media和@import媒体查询hack
媒体查询可以被用在CSS中的@media和@import规则上,也可以被用在HTML和XML中。
例如:
@media screen and (800px){ … }
@import url(example.css) screen and (800px);
<link media="screen and (800px)" rel="stylesheet" href="example.css" />
<?xml-stylesheet media="screen and (800px)" rel="stylesheet" href="example.css" ?>
语法:
@media:<media_query_list>
<media_query_list>:[<media_query>[',' <media_query>]*]?
多个用逗号隔开@media (not (screen and (color))), print and (color)
<media_query>:[only | not]? <media_type> [and <expression>]* | <expression> [and <expression>]*
<expression>:'('<media_feature>[:<value>]?')'
Only :仅仅,只针对 not:否,不针对
/* 只支持IE6、7 */ @media screen9 {...}
/* 只支持IE8 */ @media