Introduction to streaming layout and viewport knowledge in mobile web

Source: Internet
Author: User

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
    1. We suspect that the next PC page is displayed on the mobile device.

Not fit, zoom?

    1. We tested the PC page to display on the mobile device.

The default zoom is displayed for the

    1. 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

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.