1、WebApp全屏模式:
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
注意:viewport 后面加上 minimal-ui 在safri 體現效果
<meta name="apple-mobile-web-app-capable" content="yes" />
2、隱藏狀態欄/設置狀態欄顏色:
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
3、safri 添加到主屏界面的顯示標題:
<meta name="apple-mobile-web-app-title" content="應用標題">
4、忽略自動識別數字為電話號碼:
<meta content="telephone=no" name="format-detection" />
5、忽略自動識別郵箱賬號:
<meta content="email=no" name="format-detection" />
6、常用瀏覽器全屏設置:
<!-- uc強制豎屏 -->
<meta name="screen-orientation" content="portrait">
<!-- UC強制全屏 -->
<meta name="full-screen" content="yes">
<!-- UC應用模式 -->
<meta name="browsermode" content="application">
<!-- QQ強制豎屏 -->
<meta name="x5-orientation" content="portrait">
<!-- QQ強制全屏 -->
<meta name="x5-fullscreen" content="true">
<!-- QQ應用模式 -->
<meta name="x5-page-mode" content="app">
<!-- 是針對一些老的不識別viewport的瀏覽器,列如黑莓 -->
<meta name="HandheldFriendly" content="true">
<!-- 微軟的老式瀏覽器 -->
<meta name="MobileOptimized" content="320">