WebApp开发Meta标签解析

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">

查看更多文章,请点击进入个人博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值