Web pages show too much trouble on your phone

Source: Internet
Author: User

On-line copy, oneself also forgot: increase <meta name= "viewport" content= "Width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,target-densitydpi=device-dpi ">

Parameter description:

TARGET-DENSITYDPI=DEVICE-DPI, specifies that the screen pixel density dpi,device-dpi is the device's original DPI value, there will be no scaling, or you can specify a number between 80-400 such as 400dpi to zoom the page

Width=device-width, specifies the screen width, device-width the width of the device screen.

Initial-scale=1, the initial zoom ratio, set to 1, indicates that no scaling is made, showing the original size.

User-scalable=no, user no no can manually zoom the page, set to no not allowed.

minimum-scale=1.0, Minimum zoom, set to 1, minimum zoom to 1 time times.

maximum-scale=1.0, Maximum zoom, set to 1, maximum can only be scaled to 1 time times, with the previous match, guaranteed that the page will not be scaled.

Web pages show too much trouble on your phone

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.