samedi 5 mai 2012

CSS pour iPhone & iPad

Déclarer une feuille de style pour iPad:
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="http://c-lien.blogspot.com/?Li9pcGFkLmNzcw==" type="text/css" />

Attention cette feuille de style est aussi valide pour l'iPhone.
Si vous souhaitez définir un style pour iPhone vous devez ajouter :
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="http://c-lien.blogspot.com/?Li9pcGhvbmUuY3Nz" type="text/css" />

Pour l'iphone 4 vous devez ajouter :
<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="http://c-lien.blogspot.com/?Li9pcGhvbmU0LmNzcw==" />

Aucun commentaire:

Enregistrer un commentaire