CSS媒体查询的确切NOT(反向) [英] Exact NOT(Inverse) of CSS Media Query

查看:222
本文介绍了CSS媒体查询的确切NOT(反向)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下CSS媒体查询的确切NOT是什么?

What is the exact "NOT" of the following CSS media query ?

@media only screen and (device-width:768px)

只是为了添加,这意味着...所有EXCEPT iPAD ... OR .. ... NOT iPAD ..

Just to add, it would mean..All EXCEPT iPAD...OR.....NOT iPAD..

和BTW ...我已经尝试过

and BTW...I have already tried

@media not only screen and (device-width:768px)

工作..

推荐答案

@media not screen and (device-width:768px)

不是 在媒体查询中是互斥的; 仅需要解决一些实现媒体字符串的HTML4算法的downrev UA,因此当查询以而不是 只有是毫无意义的。

not and only are mutually exclusive in media queries; only is needed only to work around some downrev UAs who implement the HTML4 algorithm for media strings, so when the query starts with not the only is pointless.

这篇关于CSS媒体查询的确切NOT(反向)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆