Solve the overall relative screen reduction problem when the phone visits the website? (Resolved)

Source: Internet
Author: User

Solve the overall relative screen reduction problem when the phone visits the website? (Resolved)

Their own development of the site, on the phone when access, is always a small piece, can not be very good to adapt to the screen, each time to use the finger to zoom to the appropriate size, after the discovery, need to add in the development code:

<meta name= "viewport" content= "Width=device-width, initial-scale=1" > (can be added to the first row)


Parameter description: Width-viewport width height-viewport height initial-scale-Initial zoom Minimum-scale-allows the user to zoom to the minimum scale Maximum-scale-allows the user to zoom to the most Large scale user-scalable-whether the user can manually scale this parameter description reference: http://www.2cto.com/kf/201308/240021.html

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.