Created
March 29, 2013 01:40
-
-
Save gliheng/5268187 to your computer and use it in GitHub Desktop.
media query targeting iphone & ipad
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
<link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="http://example.com/iPhone.css" /> | |
<link type="text/css" rel="stylesheet" media="only screen and (min-device-width: 768px) and (max-device-width: 1024px)" href="http://example.com/iPad.css" /> | |
/* iPad [portrait + landscape] */ | |
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { | |
} | |
/* iPhone [portrait + landscape] */ | |
@media only screen and (max-device-width: 480px) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment