移动端常用的meta

Posted 此生依然

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了移动端常用的meta相关的知识,希望对你有一定的参考价值。

 

1. 禁止缩放:<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

2. 不识别为电话号码、邮箱、地址:<meta name="format-detection" content="telephone=no,email=no,adress=no">

3. 删除默认的苹果工具栏、菜单栏(全屏显示:<meta name="apple-mobile-web-app-capable" content="yes">

4. 全屏显示:<meta name="apple-touch-fullscreen" ="yes">

5. 设置app应用下状态条的颜色,默认值default (白色)  black(黑色),black-translucent(灰色半透明)如果设置为这个值会占据页面的px位置浮在页面上方20px高度  iphone4是40px :<meta name="apple-mobile-web-app-status-bar-style" content="black">

6. 360模式固定为极速模式:<meta name="renderer" content="webkit">

7. IE8浏览器的显示方式:IE=edge以IE最高版本显示,chrome=1 以谷歌浏览器模式渲染(GCF(Google Chrome Frame)):<meta http-equiv="X-UA-Compatible" content="IE=edge       chrome=1">

8. 告诉浏览器链接来源于哪里(计算网页上链接的访问量):<meta name="referrer" content="never">

 

以上是关于移动端常用的meta的主要内容,如果未能解决你的问题,请参考以下文章

移动端常用的meta

移动端H5开发常用技巧总结

移动端meta的使用

h5移动端flexible源码适配终端解读以及常用sass函数

h5移动端flexible源码适配终端解读以及常用sass函数

移动端开发必须知道的小技巧(转)