且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ipad Mini Specfic CSS媒体查询?

更新时间:2022-11-12 19:12:03

iPad mini将继承与原始iPad相同的视口大小。但是为了更精确,您可以指定iPad mini的像素密度,因此:

The iPad mini will just inherit the same viewport size as the original iPad. But for more precise, you can target pixel density of the iPad mini, so:

/* ipad Mini Portrait */
@media only screen and (width:768px) and (resolution: 163dpi) {

}

/* ipad Mini Landscape */
@media only screen and (width:1024px) and (resolution: 163dpi) {

}