<meta name= "viewport" content= "Width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, User-scalable=yes "/>
WAP Mobile page automatically adapts to phone screen widthBig | medium | Small 2012/08/25 17:51, mdy
Css Refactoring, Comments (0), reading (5969), Via site Original
Tags:wap page Adaptive width, mobile page width, WAP
View Plainprint?
- <meta name="viewport" content="Width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale= 2.0, User-scalable=yes "/>
View Plainprint?
- Add these words to the
- which
- Width=device-width: Indicates width is the width of the device screen
- initial-scale=1.0: Indicates the initial zoom ratio
- minimum-scale=0.5: Represents the minimum zoom ratio
- Maximum-scale=2.0: Represents the maximum zoom ratio
- User-scalable=yes: Indicates whether the user can adjust the zoom ratio
- If you want to open a webpage, it is automatically displayed at the original scale, and the user is not allowed to modify it:
- [HTML] View plaincopy
- <meta name="viewport" content="Width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale= 1.0, User-scalable=no "/>
- In this way, you can set the width of some of the images, such as header banners, to style="width:100%", and the entire page looks like a full screen on the device.
View Plainprint?
- HTML5 developed WAP site What do these three separate meanings mean?
- <meta name= "mobileoptimized" content= "/> //the browser does not automatically resize the file and will not be stretched with the browser.
- <meta name=" YES " />" Add to Home ", full-screen display
- <meta name= "Apple-mobile-web-app-capable " content=" yes "&NBSP;/>&NBSP;&NBSP;
- If the content is set to Yes, The Web application runs in full-screen mode; The default behavior is to use the Safari browser to display Web page content
-