@media syntax / possible combinations

試著忘記壹切 提交于 2019-12-12 19:06:50

问题


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 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!


回答1:


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.




回答2:


Here's the latest W3C recommendation on media queries:

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



来源:https://stackoverflow.com/questions/3762152/media-syntax-possible-combinations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!