常见移动设备的 CSS3 Media Query 整理(iPhone/iPad/Galaxy/HTC One etc.)_html/css_WEB-ITnose

WBOY
发布: 2016-06-21 09:13:59
原创
1208 人浏览过

css@charset "utf-8";/** * 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) {}/** *  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) {}
登录后复制

来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板