Home  >  Article  >  Web Front-end  >  CSS3 media queries for iPhone_html/css_WEB-ITnose

CSS3 media queries for iPhone_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:49:26873browse

CSS3 media query for iPhone:

Each version of iPhone media query implements media query based on its resolution and some CSS3 media query characteristics...see below for details :

Media queries for iPhone6:

@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*/

Quoted from: CSS3 media queries for iPhone6 ​​


The difference table between the resolution of each mobile version and the actual resolution in CSS:

Quoted from: mydevice.io

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn