手机和平板电脑设备最推荐的CSS媒体查询

手机和平板电脑设备最推荐的CSS媒体查询,css,media-queries,Css,Media Queries,我想了解一下针对手机(掌上电脑)和平板电脑的css媒体查询最推荐的方式。我有下面的代码,我想知道它是否 @media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (min-device-width : 768px) { /*style*/ } 谢谢大家! 这将很有帮助 @media (min-width:320px) { /* smartphones, portrait

我想了解一下针对手机(掌上电脑)和平板电脑的css媒体查询最推荐的方式。我有下面的代码,我想知道它是否

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (min-device-width : 768px) {
    /*style*/
}

谢谢大家!

这将很有帮助

 @media (min-width:320px)  { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
    @media (min-width:480px)  { /* smartphones, Android phones, landscape iPhone */ }
    @media (min-width:600px)  { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
    @media (min-width:801px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
    @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
    @media (min-width:1281px) { /* hi-res laptops and desktops */ }

@尼古拉斯,谢谢。我没看见。我会参考的。啊,是的。这就是我要找的!非常感谢。