Page Adaptive <meta name= "viewport" > Label settings

Source: Internet
Author: User

Viewport

It is set up in the page, is to deal with the mobile phone mode access to the site, the page to the screen and some settings. Usually when the mobile browser opens the page, the page is placed in a virtual "window"-this is larger than the window, that is, you often find that the page can be dragged, zoomed in and small, this window is Viewport,meta this viewport property basic all mobile browser support. <meta name= "viewport" content= "width=device-width,initial-scale=1.0" >

Content Property Value:

  • Width : The range of the viewable area, the value can be a number or keyword device-width;
  • Height: with width;
  • Intial-scale: The first time the page is displayed is the zoom level of the viewable area, the value of 1.0 is displayed by the actual size, without any zoom;
  • maximum-scale=1.0, minimum-scale=1.0; The zoom level of the viewable area, Maximum-scale user can enlarge the page program, 1.0 will prohibit the user to enlarge above the actual size.
  • user-scalable: Whether the page can be scaled, no disables scaling

Page Adaptive <meta name= "viewport" > Label settings

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.