Mobile-adaptive processing of page layouts

Source: Internet
Author: User
There are probably several scenarios for processing a page:
  1. The first is the use of bootstrap;
  2. Their own use of self-adaptive units commonly used rem,em, and others encapsulated good plug-in flexble.js;
    In the use of flexble.js, when found two problems, height is not very good presentation, sometimes lower than the design manuscript, will cause the page is flat, the second is easy to cause the expansion of both hands, this can be configured in Flexble.js, in the project index to remove the meta-setting, In Flexble.js plus nitial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, Shrink-to-fit=no, but the first problem was not solved;
  3. So give up the use of flexble.js, choose others to use the encapsulated REM, is a 750px width of the design, can adapt to most of the mobile phone, but a little defect is the early vivo x7 of a class of Android phone native browser or WebView will appear less than the layout viewport of the visual viewport;
    The final synthesis of 2, 32, modified JS source code is still not adjusted, the final thought is the width of the set with a percentage, height with 3 set of the scheme REM;

Hope that the great God has all the options to adapt to a demo, thank you;

Mobile-adaptive processing of page 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.