2017-03-31 44 views
-1

从大型桌面屏幕移动到小型移动设备:我们应该使用哪些媒体查询?所有屏幕尺寸的媒体查询

我对此有点困惑。我试图让这显然

/*Small Desktop*/ 

@media (max-width:1920px){ 

} 
+0

请编辑的问题。虽然我觉得你想要问一个有效的问题,但是你所问的并不是很清楚。 – Etherealone

+1

检查此[common-css-media-queries-break-points](http://stackoverflow.com/questions/16443380/common-css-media-queries-break-points) – LGSon

+0

[Common CSS Media Queries断点](http://stackoverflow.com/questions/16443380/common-css-media-queries-breakpoints) –

回答

0

@media查询只适用于在设备的屏幕符合某些规定的标准标准的CSS(高度,宽度和像素比例;主要)

最好的资源我已经找到了媒体的质疑是https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

这里是梦幻般的工作,有一个片段:

/* ----------- iPad mini ----------- */ 

/* Portrait and Landscape */ 
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (-webkit-min-device-pixel-ratio: 1) { 

} 

/* Portrait */ 
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (orientation: portrait) 
    and (-webkit-min-device-pixel-ratio: 1) { 

} 

/* Landscape */ 
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (orientation: landscape) 
    and (-webkit-min-device-pixel-ratio: 1) { 

}