@media query to target hi-res Windows Phone 8+?

2019-04-14 12:17发布

According to Brett Jankord's Cross Browser Retina/High Resolution Media Queries

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

Is there another way to target windows phones with css?

(I don't mind if all windows phones get the hi-res images)

1条回答
Bombasti
2楼-- · 2019-04-14 12:53

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 */
}
查看更多
登录 后发表回答