Cell phone meta tag (save it every time you find it)

Source: Internet
Author: User

Mobile website META tagMobile-specific META tags

1, <meta name= "viewport" id= "viewport" content= "Width=device-width, initial-scale=1" >

 

This meta tag is added to the head of the Web Phone wap2.0 Web page, and the page will be displayed in its original size in the iphone's browser and does not allow zooming.


when it comes to mobile platform meta tags, you have to say viewport, so what is viewport?


viewport is the viewable area, for desktop browsers, viewport refers to the area that is used to look at the page after removing all toolbars, status bars, scrollbars, and so on .



2, <meta name= "format-detection" content= "Telephone=no" >

 

When the HTML page is browsed on the phone, the label is used to specify whether to display the phone number in the page content as a dial-up hyperlink.

 

the default value on the IPhone is:

 

<meta name= "format-detection" content= "Telephone=yes"/>

 

If you don't want your phone to automatically display the phone number in your page as a dial-up hyperlink, you can write:

 

<meta name= "format-detection" content= "Telephone=no"/>

 


3, <meta name= "apple-mobile-web-app-capable" content= "yes"/>

 

Description: The website opens support for Web apps.

 


4, <meta name= "Apple-mobile-web-app-status-bar-style" content= "Black"/>

 

Description:

The color of the status bar (the top bar of the screen) in the web App app;
defaults are default (white), which can be set to Black (dark) and black-translucent (gray translucent).
Note: If the value "Black-translucent" will occupy the page px position, floating above the page (will cover the page 20px height –iphone4 and itouch4 Retina screen is 40px).

Cell phone meta tag (save it every time you find it)

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.