SHARE
TWEET

Untitled

a guest Feb 4th, 2013 496 Never
  1. @media only screen and (max-device-width: 480px) {}
  2.        
  3. @media only screen and (min-device-width: 640px) and (max-device-width: 1136px) and (-webkit-min-device-pixel-ratio: 2) {
  4.     /* iPhone 5 only */
  5. }
  6.        
  7. @media only screen and (max-device-width: 480px), only screen and (min-device-width: 640px) and (max-device-width: 1136px) and (-webkit-min-device-pixel-ratio: 2) {
  8.     /* iPhone only */
  9. }
  10.        
  11. @media
  12.     only screen and (max-device-width: 1136px) and (min-device-width: 960px) and (device-height: 640px),
  13.     only screen and (max-device-height: 1136px) and (min-device-height: 960px) and (device-width: 640px) {
  14.     /* iPhone only */
  15. }
  16.        
  17. only screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)
  18.        
  19. @media screen and (device-height: 568px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  20.     // css here
  21. }
  22.        
  23. @media only screen and (max-device-width: 480px), only screen and (min-device-width: 640px) and (max-device-width: 1136px) and (-webkit-min-device-pixel-ratio: 1.5) {
  24. /* iPhone only */
  25. }
RAW Paste Data
Top