css3 - @media screen and 和@media only screen and有什么不同?
大家讲道理
大家讲道理 2017-04-17 11:11:24
0
2
727

RT,求解

@media screen and 和@media only screen and有什么不同?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
刘奇

not/only

Media types also support the not and only keywords, which can be used to more conveniently locate a media device:

not: exclude certain media types

@media not print and (color){
}
only: Specify a specific media type, which can be used to exclude browsers that do not support media queries:

@media only screen and (color){
}

Full link of a great god
http://www.cnblogs.com/august...

巴扎黑

I don’t know about this either. I was curious, so I checked it out
http://stackoverflow.com/questions/8549529/what-is-the-difference-betw...
It seems that these media types have a certain influence relationship. If you don’t add only, it will be inherited by other media types. Learned

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template