作者热门文章
- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
以下 CSS 媒体查询的确切“NOT”是什么?
@media only screen and (device-width:768px)
只是补充一下,这意味着......除 iPAD 之外的所有......或......不是 iPAD ......
顺便说一句...我已经试过了
@media not only screen and (device-width:768px)
这不起作用..
最佳答案
@media not screen and (device-width:768px)
not
和 only
在媒体查询中是互斥的; only
只需要解决一些为媒体字符串实现 HTML4 算法的 downrev UA,因此当查询以 not
开头时,only
是毫无意义。
关于html - CSS 媒体查询的精确 NOT(逆),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5766069/
我是一名优秀的程序员,十分优秀!