There are probably several scenarios for processing a page:
- The first is the use of bootstrap;
- 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;
- 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