I was wondering what does the operators and
, only
, not
and the comma ,
do an开发者_JAVA百科d mean when used with the media queries?
Are there any other operators that can be used with the media queries?
Please read the Media Queries Specification, it's only 1 page long. In summary though:
and
means both things must match,
means one of the things must matchnot
means the query is true when it doesn't matchonly
is mentioned in the spec but I can't find a definition. I suspect it does nothing.
精彩评论