Nat*_*han 13 css mobile css3 media-queries
当使用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 */
}
Run Code Online (Sandbox Code Playgroud)
与
@media
only screen and (min--moz-device-pixel-ratio: 1.5) {
/* styles go here*/
}
Run Code Online (Sandbox Code Playgroud)
哪个是对的?
一些使用前者的教程/博客:
一些使用后者的教程/博客,包括mozilla.org:
jus*_*ery 19
第二个是正确的.
这是来自http://www.quirksmode.org/blog/archives/2012/07/vendor_prefixes.html
-webkit-min-device-pixel-ratio: 1.5
min--moz-device-pixel-ratio: 1.5
-o-min-device-pixel-ratio: 3/2
Run Code Online (Sandbox Code Playgroud)