Last active
August 29, 2015 14:18
-
-
Save tamura/e1a25894aefcfe73cdd6 to your computer and use it in GitHub Desktop.
エレメント全てが大きい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(window.devicePixelRatio) | |
@media screen and (-webkit-min-device-pixel-ratio: 2), | |
(min-resolution: 2dppx), | |
(min--moz-device-pixel-ratio: 2), | |
(-o-min-device-pixel-ratio: 2/1) { | |
-moz-transform: scale(0.8); | |
-webkit-transform: scale(0.8); | |
-o-transform: scale(0.8); | |
-ms-transform: scale(0.8); | |
transform-origin: center 0 0; | |
} | |
if(window.devicePixelRatio==1){ | |
// -moz-transform: scale(0.8); | |
// -webkit-transform: scale(0.8); | |
// -o-transform: scale(0.8); | |
// -ms-transform: scale(0.8); | |
// transform-origin: center 0 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment