REM and mobile-side layouts

Source: Internet
Author: User

Mobile layout pain points in: compatible with each resolution of mobile devices, the same mobile phone, Iphone4-iphonex resolution range is already very wide, if the use of PX layout, obviously there will be problems;

Common pixel unit Px,em,rem, EM is relative to the parent element font-size units, the individual think in use, EM will be more chaotic; REM is relative to the root element, HTML, easy to layout according to the screen resolution;

The current mobile-side layout takes the form of: "Horizontal percent + longitudinal rem", while using the flex layout, media queries;

Https://www.cnblogs.com/ysshuai/p/6694339.html

Https://www.cnblogs.com/mracale/p/7170385.html

Https://www.cnblogs.com/jide/p/7051006.html

REM and mobile-side layouts

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.