如何反转媒体查询?

时间:2012-01-04 07:49:22

标签: css css3

如何选择以下媒体查询的相反内容?

@media only screen and (-webkit-min-device-pixel-ratio: 2) { }

几乎就像我说的那样(当然是伪代码)

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
....
} else {
....
}

1 个答案:

答案 0 :(得分:0)

您可以使用not

  

https://developer.mozilla.org/en/CSS/Media_queries

@media not screen and (-webkit-min-device-pixel-ratio: 2) { ... }