How does php declare the mobile phone header?

Source: Internet
Author: User
Php how to declare the header (".... "); & Lt ;! DOCTYPE & nbsp; html & nbsp; PUBLIC & nbsp; "-// WAPFORUM // DTD & nbsp; XHTML & nbsp; Mobile & nbsp; 1.0 // EN" & nbsp; "http://www.wapf php how to declare the phone head
Header (".... ");

Share:
------ Solution --------------------












Xxxx




There is a meta tag, which is very important, viewport.

1. what Viewport?

The mobile browser places the page in a virtual "window". Generally, this virtual "window" is wider than the screen, in this way, you do not need to squeeze each webpage into a small window (this will damage the layout of the webpage that is not optimized for the mobile browser). you can view different parts of the webpage through translation and scaling. The mobile Safari browser recently introduced the meta tag viewport, which allows web developers to control the size and scaling of viewport. other mobile browsers also support the meta tag.

2. In general, a commonly used viewport meta tag for pages optimized for mobile web pages is roughly as follows:



Width: Controls the viewport size. you can specify a value. if it is 600 or a special value, for example, if device-width is the width of a device, the unit is the CSS pixel when the unit is 100% ).

Height: corresponds to width and specifies the height.

Initial-scale: the initial scale, that is, the scale when the page is loaded for the first time.

Maximum-scale: the maximum scale that users can scale.

Minimum-scale: minimum scale that allows users to scale.

User-scalable: whether the user can manually scale

------ Solution --------------------
In fact, this sentence is enough.

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.