Prerequisites for Mobile Page development

Source: Internet
Author: User

Unlike PC-side development, mobile development needs to include the following line of code in the head

<meta name= "viewport" content= "width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0, User-scalable=no ">

Name= "viewport" means: make the width of viewport equal to the real resolution on the physical device

Width=device-width: Width: Controls the size of the viewport, you can specify a value if 600, or a special value, such as device-width for the width of the device (in pixels of the CSS when scaled to 100%).

initial-scale=1.0: The initial zoom ratio, which is the scale at which the page is first load.

minimum-scale=1.0: Allows the user to zoom to the maximum scale. equals 1.0, which means it is not scalable

maximum-scale=1.0: The minimum scale to which the user is allowed to zoom.

User-scalable=no: Whether the user can scale manually, no indicates that it is not possible

Prerequisites for Mobile Page development

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.