meta标签

1.隐藏状态栏/设置状态栏颜色
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
2、safri 添加到主屏界面的显示标题:
<meta name="apple-mobile-web-app-title" content="应用标题">
3、忽略自动识别数字为电话号码:
<meta content="telephone=no" name="format-detection" />
4、忽略自动识别邮箱账号:
<meta content="email=no" name="format-detection" />
5、UC浏览器
<!-- 将屏幕锁定在特定的方向 -->
<meta name="screen-orientation" content="landscape/portrait">
<!-- 全屏显示页面 -->
<meta name="full-screen" content="yes">
<!-- 强制图片显示,即使是"text mode" -->
<meta name="imagemode" content="force">
<!-- 应用模式,默认将全屏,禁止长按菜单,禁止手势,标准排版,强制图片显示。 -->
<meta name="browsermode" content="application">
<!-- 禁止夜间模式显示 -->
<meta name="nightmode" content="disable">
<!-- 使用适屏模式显示 -->
<meta name="layoutmode" content="fitscreen">
<!-- 当页面有太多文字时禁止缩放 -->
<meta name="wap-font-scale" content="no">
6、QQ手机浏览器
<!-- 锁定屏幕在特定方向 -->
<meta name="x5-orientation" content="landscape/portrait">
<!-- 全屏显示 -->
<meta name="x5-fullscreen" content="true">
<!-- 页面将以应用模式显示 -->
<meta name="x5-page-mode" content="app">
7、iOS
<!-- Smart App Banner -->
<meta name="apple-itunes-app" content="app-id=APP_ID,affiliate-data=AFFILIATE_ID,app-argument=SOME_TEXT">

<!-- 禁止自动探测并格式化手机号码 -->
<meta name="format-detection" content="telephone=no">

<!-- Add to Home Screen添加到主屏 -->
<!-- 是否启用 WebApp 全屏模式 -->
<meta name="apple-mobile-web-app-capable" content="yes">

<!-- 设置状态栏的背景颜色,只有在 “apple-mobile-web-app-capable” content=”yes” 时生效 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<!-- 添加到主屏后的标题 -->
<meta name="apple-mobile-web-app-title" content="App Title">
8、360浏览器
<!-- 选择使用的浏览器解析内核 -->
<meta name="renderer" content="webkit|ie-comp|ie-stand">
9、Google Chrome
<!-- 优先使用最新的chrome版本 -->
<meta http-equiv="X-UA-Compatible" content="chrome=1" />

<!-- 禁止自动翻译 -->
<meta name="google" value="notranslate">
10、百度禁止转码
<meta http-equiv="Cache-Control" content="no-siteapp" />
11、Viewport(影响移动端布局)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
/*
    content 参数:
    width viewport 宽度(数值/device-width)
    height viewport 高度(数值/device-height)
    initial-scale 初始缩放比例
    maximum-scale 最大缩放比例
    minimum-scale 最小缩放比例
    user-scalable 是否允许用户缩放(yes/no)
*/

注:
本文参考:
http://blog.csdn.net/yc123h/article/details/51356143
http://blog.csdn.net/sina1990125/article/details/49734997

posted @ 2018-01-13 18:32  我在等风也等你啊  阅读(128)  评论(0编辑  收藏  举报