mercredi 26 mars 2014

Media queries with iPad Retina display


Vote count:

0




I've browsed through some questions and found thise code



@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */ }


As far as I can see, this query will only select the device with given params. But what if I want also select other devices with standard pixel ratio, but of the same resolution, using only one media query? What code should be then?


Or there's no way to do this and I have to use 2 media queries to select non-retina and retina display?



asked 20 secs ago






Aucun commentaire:

Enregistrer un commentaire