Compatible with Apple 4, Apple 5

Source: Internet
Author: User

/* iphone4 */

@media screen and (device-width:320px) and (device-height:480px) and (-webkit-device-pixel-ratio:2) {


}

/* Iphone5 */

@media screen and (device-width:320px) and (device-height:568px) and (-webkit-device-pixel-ratio:2) {

}

Apple 4 mobile phone judgment is used for animation, if you do not set the style alone, most will display incomplete, the following part of the page is intercepted,

Apple 5 is judged to be used to write REM-based adaptive pages, when the size of the 750 design is 24px, the conversion to Apple 5 display font size is more than 10 pixels, the font size is too small, you need to set the individual 11px or 12px

Compatible with Apple 4, Apple 5

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.