How does the mobile page work?

Source: Internet
Author: User
Responsive layout development, mobile phone adaptation, a set of pages on different models of mobile phones can be well reflected
1. Flow-type layout:
Width not adaptable, adaptive, or percent set
The height, font, etc. are written as fixed values
--and then through @media (media query), according to different sizes of the screen for flexible adjustment--2014 responsive layout idea

2, Fixed layout: (This way no one has been used)
Set the maximum width value, if the width of the screen exceeds the maximum width, let the page appear in the middle, leaving white on both sides

3, Zoom layout: (currently do scene switch page--commonly used)
In accordance with the width of the design and the width of the screen, we designed a set of the most suitable for the scale of the page
Layout in strict accordance with the size of the design manuscript layout
--then install the scale overall to all the content in the page to zoom

4, FLEX (CSS3 properties, the compatibility of the mobile side is not particularly good)/bootstrap (mobile end frame) Fence layout

5, REM layout (we currently do webapp most commonly used layout ideas)
We set a root value
And then we set the value of the style to the corresponding REM value calculated by the root value
With the size of the page changes, the browser will change itself

How does the mobile page work?

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.