开发者

@media syntax / possible combinations

开发者 https://www.devze.com 2023-01-16 21:02 出处:网络
I\'ve seen some of these...: @media print { ... } @media screen, handheld, print, projection { ... } @media all { ... }

I've seen some of these...:

@media print { ... }
@media screen, handheld, print, projection { ... }
@media all { ... }
@media all and (property:value) { ... }
@media screen and (property:value) { ... }
@media开发者_JS百科 only screen and (property:value) { ... }
@media screen and (property:value) and (property:value) { ... }
@media screen and (property:value), tv and (property:value) { ... }

...but I'd like to know the exact syntax / all possible combinations for media queries because I'm modifying a CSS parser.

Many Thanks!


Check this link out: http://www.w3.org/TR/CSS2/media.html

It looks like it has the possible options that you are looking for.


Here's the latest W3C recommendation on media queries:

http://www.w3.org/TR/css3-mediaqueries/

0

精彩评论

暂无评论...
验证码 换一张
取 消