Mobile development webapp development common meta settings mobile browser full screen mode, webappmeta

Source: Internet
Author: User

Mobile development webapp development common meta settings mobile browser full screen mode, webappmeta

1,WebApp full screen mode:

<Meta name = "viewport" content = "width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no, minimal-ui ">

Note: add minimal-ui after viewport to display the effect in safri.

<Meta name = "apple-mobile-web-app-capable" content = "yes"/>

 

2,Hide status bar/set status bar color:

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

 

3. safriDisplay title added to the main screen:

<Meta name = "apple-mobile-web-app-title" content = "app title">

 

4,Ignore automatically recognized numbers as phone numbers:

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

5,Ignore automatically recognized email accounts:

<meta content="email=no" name="format-detection" />
6,Full Screen Settings for common browsers:<! -- Uc force portrait --> <meta name = "screen-orientation" content = "portrait"> <! -- UC force full screen --> <meta name = "full-screen" content = "yes"> <! -- UC application mode --> <meta name = "browsermode" content = "application"> <! -- QQ Forced vertical screen --> <meta name = "x5-orientation" content = "portrait"> <! -- QQ forced full screen --> <meta name = "x5-fullscreen" content = "true"> <! -- QQ application model --> <meta name = "x5-page-mode" content = "app">

 

 

<! -- For some old browsers that do not recognize viewport, such as BlackBerry -->

<Meta name = "HandheldFriendly" content = "true">
<! -- Microsoft's old-fashioned browser -->

<Meta name = "MobileOptimized" content = "320">

For more information, click

Related Article

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.