Metaviewport enables full screen display control for webpages on the iPhone _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Tags html header
Recently, I am working on a Web site accessed Based on the iPhone. The originally smart Safari gave me a hard time. Safari scales automatically when the width and height of the DIV are set. And I want to display it on full screen. In desperation, I suddenly thought about how the Sina touch screen version I often visit is made? Open Opera,
The source code found meta viewport in the HTML header. Is this guy playing a role?
Try again. The screen is full. By the way, I checked the function of this label and recorded it for convenience.
.
Meta viewport


Where:
Width-width of viewport
Height-the height of viewport
Initial-scale-initial scaling ratio
Minimum-scale-minimum scale allowed by users
Maximum-scale-maximum scale allowed by users
User-scalable-whether the user can manually Scale

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.