@media查询到目标高分辨率Windows Phone 8+? [英] @media query to target hi-res Windows Phone 8+?

查看:125
本文介绍了@media查询到目标高分辨率Windows Phone 8+?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Brett Jankord的跨浏览器视网膜/高分辨率媒体查询


Windows 8手机不支持任何设备像素比媒体查询。 p>

Windows 8 phones do not support any of the device-pixel-ratio media queries.

有另一种方法可以使用css来定位windows手机吗?

Is there another way to target windows phones with css?

推荐答案

文章接着说,IE支持 min-resolution 但只有 dpi

The article then goes on saying that IE does support min-resolution but only with dpi

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
    /* Retina-specific stuff here */
}

这篇关于@media查询到目标高分辨率Windows Phone 8+?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆