在使用 CSS 媒体查询来获取设备像素密度时,我同时看到了-moz-min-device-pixel-ratio
和min--moz-device-pixel-ratio
.
例如:
@media
only screen and (-moz-min-device-pixel-ratio: 1.5) {
/* styles go here */
}
对比
@media
only screen and (min--moz-device-pixel-ratio: 1.5) {
/* styles go here*/
}
哪个是对的?
一些使用前者的教程/博客:
http://menacingcloud.com/?c=highPixelDensityDisplayshttp://css3.bradshawenterprises.com/blog/retina-image-replacement-for-new-ipad/
一些使用后者的教程/博客,包括 mozilla.org: