最推荐用于移动电话和平板电脑设备的CSS媒体查询

时间:2016-11-11 07:01:29

标签: css media-queries

我想要了解哪些可能是针对移动电话(手持设备)和平板电脑的最推荐的css媒体查询。我有以下代码,我想知道它是否

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

谢谢!

1 个答案:

答案 0 :(得分:5)

这将有所帮助......

 @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 */ }
相关问题