html5-use the Meta Viewport control page to maintain a consistent width with the device

Source: Internet
Author: User

Date: 2016-5-19
Exclusive Luxury

When you use HTML5 to develop a mobile page, you can add meta viewport to control the width of the page to remain 1 time times the original size of the device width and scale in order to deform the page beyond the user's zoom and keep it visually fixed as the app.

<meta name= "viewport" content= "Width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>

The individual parameter entries are specified as follows:
    • Initial-scale-Initial zoom ratio
    • Minimum-scale-Minimum scale to allow the user to zoom
    • Maximum-scale-Maximum scale to which the user is allowed to zoom
    • User-scalable-whether the user can manually scale

html5-use the Meta Viewport control page to maintain a consistent width with the device

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.