1 Flow-through layout
In fact, the flow layout is the percentage layout, the width of the box is set as a percentage to scale according to the width of the screen, not limited by fixed pixels, the content is filled to both sides.
This is how the mobile Web development uses the common layout
2 Viewport
- We suspect that the next PC page is displayed on the mobile device.
Not fit, zoom?
- We tested the PC page to display on the mobile device.
The default zoom is displayed for the
- Meet viewport
In this area where the mobile is used to host the Web page, it is our visual window, viewport (viewport), which is set to a height width, but scaled down, and can be set to allow the user to zoom in and out.
Width: Viewport width is set, you can set Device-width special value
Initial-scale: Initial zoom ratio, number greater than 0
Maximum-scale: Maximum zoom ratio, number greater than 0
Minimum-scale: Minimum zoom ratio, number greater than 0
User-scalable: Whether the user can zoom, yes or no (1 or 0);
Set the viewport width to device-width with the META tag and initial-scale=1,user-scalable = 0 to build a standard mobile Web page
Introduction to streaming layout and viewport knowledge in mobile web