


常见移动设备的 CSS3 Media Query 整理(iPhone/iPad/Galaxy)_html/css_WEB-ITnose
来自: http://blog.csdn.net/offbye/article/details/50804029
今天帮人解决了iphone4下载页显示错误的问题,css3 media query坑啊,不容易匹配到。
/** * iPhone 4/4s landscape & portrait */@media only screenand (min-device-width: 320px)and (max-device-width: 480px)and (-webkit-device-pixel-ratio: 2)and (device-aspect-ratio: 2/3) { } /** * iPhone 4/4s portrait */@media only screenand (min-device-width: 320px)and (max-device-width: 480px)and (-webkit-device-pixel-ratio: 2)and (device-aspect-ratio: 2/3)and (orientation:portrait) { } /** * iPhone 4/4s landscape */@media only screenand (min-device-width: 320px)and (max-device-width: 480px)and (-webkit-device-pixel-ratio: 2)and (device-aspect-ratio: 2/3)and (orientation:landscape) { } /** * iPhone 5/5s landscape & portrait */@media only screenand (min-device-width: 320px)and (max-device-width: 568px)and (-webkit-min-device-pixel-ratio: 2) { } /** * iPhone 5/5s portrait */@media only screenand (min-device-width: 320px)and (max-device-width: 568px)and (-webkit-min-device-pixel-ratio: 2)and (orientation: portrait) { } /** * iPhone 5/5s landscape */@media only screenand (min-device-width: 320px)and (max-device-width: 568px)and (-webkit-min-device-pixel-ratio: 2)and (orientation: landscape) { } /** * iPhone 5/5s landscape & portrait */@media only screenand (min-device-width: 414px)and (max-device-width: 736px)and (-webkit-min-device-pixel-ratio: 3) { } /** * iPhone 5/5s portrait */@media only screenand (min-device-width: 414px)and (max-device-width: 736px)and (-webkit-min-device-pixel-ratio: 3)and (orientation: portrait) { } /** * iPhone 5/5s landscape */@media only screenand (min-device-width: 414px)and (max-device-width: 736px)and (-webkit-min-device-pixel-ratio: 3)and (orientation: landscape) { } @media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation : portrait) { //iPhone 6 Portrait} @media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation : landscape) { //iPhone 6 landscape }@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (orientation : portrait) { //iPhone 6+ Portrait} @media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (orientation : landscape) { //iPhone 6+ landscape} @media only screen and (max-device-width: 640px), only screen and (max-device-width: 667px), only screen and (max-width: 480px){ //iPhone 6 and iPhone 6+ portrait and landscape} @media only screen and (max-device-width: 640px), only screen and (max-device-width: 667px), only screen and (max-width: 480px) and (orientation : portrait){ //iPhone 6 and iPhone 6+ portrait} @media only screen and (max-device-width: 640px), only screen and (max-device-width: 667px), only screen and (max-width: 480px) and (orientation : landscape){ //iPhone 6 and iPhone 6+ landscape} /** * Galaxy S3 landscape & portrait */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 2) { }/** * Galaxy S3 portrait */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 2)and (orientation: portrait) { }/** * Galaxy S3 landscape */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 2)and (orientation: landscape) { }/** * Galaxy S4 landscape & portrait */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3) { }/** * Galaxy S4 portrait */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: portrait) { }/** * Galaxy S4 landscape */@media screenand (device-width: 320px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: landscape) { }/** * Galaxy S5 landscape & portrait */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3) { }/** * Galaxy S4 portrait */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: portrait) { }/** * Galaxy S4 landscape */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: landscape) { }/** * HTC One landscape & portrait */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3) { }/** * HTC One portrait */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: portrait) { }/** * HTC One landscape */@media screenand (device-width: 360px)and (device-height: 640px)and (-webkit-device-pixel-ratio: 3)and (orientation: landscape) { }/** * iPad Mini landscape & portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad Mini portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad Mini landscape */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad 1/2 landscape & portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad 1/2 portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad 1/2 landscape */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape)and (-webkit-min-device-pixel-ratio: 1) { }/** * iPad 3/4 landscape & portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (-webkit-min-device-pixel-ratio: 2) { }/** * iPad 3/4 portrait */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait)and (-webkit-min-device-pixel-ratio: 2) { }/** * iPad 3/4 landscape */@media only screenand (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape)and (-webkit-min-device-pixel-ratio: 2) { }/** * Galaxy Tab 10.1 landscape & portrait */@media(min-device-width: 800px)and (max-device-width: 1280px) { }/** * Galaxy Tab 10.1 portrait */@media(max-device-width: 800px)and (orientation: portrait) { }/** * Galaxy Tab 10.1 landscape */@media(max-device-width: 1280px)and (orientation: landscape) { }/** * Asus Nexus 7 landscape & portrait */@media screenand (device-width: 601px)and (device-height: 906px)and (-webkit-min-device-pixel-ratio: 1.331)and (-webkit-max-device-pixel-ratio: 1.332) { }/** * Asus Nexus 7 portrait */@media screenand (device-width: 601px)and (device-height: 906px)and (-webkit-min-device-pixel-ratio: 1.331)and (-webkit-max-device-pixel-ratio: 1.332)and (orientation: portrait) { }/** * Asus Nexus 7 landscape */@media screenand (device-width: 601px)and (device-height: 906px)and (-webkit-min-device-pixel-ratio: 1.331)and (-webkit-max-device-pixel-ratio: 1.332)and (orientation: landscape) { }/** * Kindle Fire HD 7" landscape & portrait */@media only screenand (min-device-width: 800px)and (max-device-width: 1280px)and (-webkit-min-device-pixel-ratio: 1.5) { }/** * Kindle Fire HD 7" portrait */@media only screenand (min-device-width: 800px)and (max-device-width: 1280px)and (-webkit-min-device-pixel-ratio: 1.5)and (orientation: portrait) {}/** * Kindle Fire HD 7" landscape */@media only screenand (min-device-width: 800px)and (max-device-width: 1280px)and (-webkit-min-device-pixel-ratio: 1.5)and (orientation: landscape) { }/** * Kindle Fire HD 8.9" landscape & portrait */@media only screenand (min-device-width: 1200px)and (max-device-width: 1600px)and (-webkit-min-device-pixel-ratio: 1.5) { }/** * Kindle Fire HD 8.9" portrait */@media only screenand (min-device-width: 1200px)and (max-device-width: 1600px)and (-webkit-min-device-pixel-ratio: 1.5)and (orientation: portrait) {}/** * Kindle Fire HD 8.9" landscape */@media only screenand (min-device-width: 1200px)and (max-device-width: 1600px)and (-webkit-min-device-pixel-ratio: 1.5)and (orientation: landscape) { }/** * Non-Retina Screens */@media screenand (min-device-width: 1200px)and (max-device-width: 1600px)and (-webkit-min-device-pixel-ratio: 1) {}/** * Retina Screens */@media screenand (min-device-width: 1200px)and (max-device-width: 1600px)and (-webkit-min-device-pixel-ratio: 2)and (min-resolution: 192dpi) {}/** * Apple Watch */@media(max-device-width: 42mm)and (min-device-width: 38mm) { }/** * Moto 360 Watch */@media(max-device-width: 218px)and (max-device-height: 281px) { }

Outils d'IA chauds

Undresser.AI Undress
Application basée sur l'IA pour créer des photos de nu réalistes

AI Clothes Remover
Outil d'IA en ligne pour supprimer les vêtements des photos.

Undress AI Tool
Images de déshabillage gratuites

Clothoff.io
Dissolvant de vêtements AI

AI Hentai Generator
Générez AI Hentai gratuitement.

Article chaud

Outils chauds

Bloc-notes++7.3.1
Éditeur de code facile à utiliser et gratuit

SublimeText3 version chinoise
Version chinoise, très simple à utiliser

Envoyer Studio 13.0.1
Puissant environnement de développement intégré PHP

Dreamweaver CS6
Outils de développement Web visuel

SublimeText3 version Mac
Logiciel d'édition de code au niveau de Dieu (SublimeText3)

Sujets chauds

Le cache de mise à jour de la page Web du compte officiel, cette chose est simple et simple, et elle est suffisamment compliquée pour en boire un pot. Vous avez travaillé dur pour mettre à jour l'article officiel du compte, mais l'utilisateur a toujours ouvert l'ancienne version. Dans cet article, jetons un coup d'œil aux rebondissements derrière cela et comment résoudre ce problème gracieusement. Après l'avoir lu, vous pouvez facilement faire face à divers problèmes de mise en cache, permettant à vos utilisateurs de toujours ressentir le contenu le plus frais. Parlons d'abord des bases. Pour le dire franchement, afin d'améliorer la vitesse d'accès, le navigateur ou le serveur stocke des ressources statiques (telles que des images, CSS, JS) ou du contenu de la page. La prochaine fois que vous y accédez, vous pouvez le récupérer directement à partir du cache sans avoir à le télécharger à nouveau, et il est naturellement rapide. Mais cette chose est aussi une épée à double tranchant. La nouvelle version est en ligne,

L'article discute de l'utilisation des attributs de validation de formulaire HTML5 comme les limites requises, motifs, min, max et longueurs pour valider la saisie de l'utilisateur directement dans le navigateur.

Cet article démontre un ajout de bordure PNG efficace aux pages Web à l'aide de CSS. Il soutient que CSS offre des performances supérieures par rapport à JavaScript ou à des bibliothèques, détaillant comment ajuster la largeur, le style et la couleur des bordures pour un effet subtil ou proéminent

L'article examine les meilleures pratiques pour assurer la compatibilité des navigateurs de HTML5, en se concentrant sur la détection des fonctionnalités, l'amélioration progressive et les méthodes de test.

L'article traite du HTML & lt; Datalist & GT; élément, qui améliore les formulaires en fournissant des suggestions de saisie semi-automatique, en améliorant l'expérience utilisateur et en réduisant les erreurs. COMMANDE COMPRES: 159

L'article traite du HTML & lt; Progress & GT; élément, son but, son style et ses différences par rapport au & lt; mètre & gt; élément. L'objectif principal est de l'utiliser & lt; Progress & gt; pour l'achèvement des tâches et & lt; mètre & gt; pour stati

Cet article explique le html5 & lt; time & gt; élément de représentation sémantique de date / heure. Il souligne l'importance de l'attribut DateTime pour la lisibilité à la machine (format ISO 8601) à côté du texte lisible par l'homme, stimulant AccessIbilit

L'article traite du HTML & lt; mètre & gt; élément, utilisé pour afficher des valeurs scalaires ou fractionnaires dans une plage, et ses applications courantes dans le développement Web. Il différencie & lt; mètre & gt; De & lt; Progress & gt; et ex
