开发者

HTML5 & CSS media attributes media queries question

开发者 https://www.devze.com 2023-02-25 07:46 出处:网络
I was wondering what does the operators and, only, not and the comma , do an开发者_JAVA百科d mean when used with the media queries?

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 match
  • not means the query is true when it doesn't match
  • only is mentioned in the spec but I can't find a definition. I suspect it does nothing.
0

精彩评论

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