Created
March 10, 2011 14:11
-
-
Save Takazudo/864138 to your computer and use it in GitHub Desktop.
how to handle high res display.
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
/* load http://www.modernizr.com/ then, do following for Retina display. */ | |
.className { | |
background:url([email protected]); /* low res img */ | |
} | |
@media only screen and (-webkit-min-device-pixel-ratio:2) { | |
.backgroundsize .className { | |
background:url([email protected]); /* high res img */ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment