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.