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" />
删除默认的苹果工具栏和菜单栏
<meta name="apple-mobile-web-app-capable" content="yes" />
设置web app的放置主屏幕上icon文件路径
<link rel="apple-touch-icon-precomposed" href="http://spion.blog.163.com/blog/iphone_milanoo.png" />
将不识别邮箱告诉设备忽略将页面中的数字识别为电话号码
<meta content="telephone=no" name="format-detection" />
<meta content="email=no" name="format-detection" />
把网页存为书签时,在手机HOME界面创建应用程序样式的图标
<link rel="apple-touch-icon" href="/static/images/identity/HTML5_Badge_64.png" />
<link rel="apple-touch-icon-precomposed" href="/static/images/identity/HTML5_Badge_64.png" />
隐藏状态栏/设置状态栏颜色:
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
safri 添加到主屏界面的显示标题:
<meta name="apple-mobile-web-app-title" content="应用标题">
忽略自动识别数字为电话号码:
<meta content="telephone=no" name="format-detection" />
忽略自动识别邮箱账号:
<meta content="email=no" name="format-detection" />
常用浏览器全屏设置:
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">
查看更多文章,请点击进入个人博客!