gpt4 book ai didi

html - CSS 媒体查询的精确 NOT(逆)

转载 作者:技术小花猫 更新时间:2023-10-29 12:51:07 25 4
gpt4 key购买 nike

以下 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)

notonly 在媒体查询中是互斥的; only 只需要解决一些为媒体字符串实现 HTML4 算法的 downrev UA,因此当查询以 not 开头时,only 是毫无意义。

关于html - CSS 媒体查询的精确 NOT(逆),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5766069/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com