可能用到的meta标签

2018-03-03  本文已影响0人  糯米小馒头

A

  1. 设置缩放
  <meta name="viewport" content="width=device-width,
   initial-scale=1, user-scalable=no, minimal-ui" />

2.可隐藏地址栏,仅针对IOS的Safari(注:IOS7.0版本以后,safari上已看不到效果)

<meta name="apple-mobile-web-app-capable" content="yes" />

3.仅针对IOS的Safari顶端状态条的样式(可选default/black/black-translucent )

<meta name="apple-mobile-web-app-status-bar-style" content="black" />

4.IOS中禁用将数字识别为电话号码/忽略Android平台中对邮箱地址的识别

<meta name="format-detection"content="telephone=no, email=no" />

B其他meta标签

1.启用360浏览器的极速模式(webkit)

<meta name="renderer" content="webkit">

2.避免IE使用兼容模式

<meta http-equiv="X-UA-Compatible" content="IE=edge">

3.针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓

<meta name="HandheldFriendly" content="true">

4.微软的老式浏览器

<meta name="MobileOptimized" content="320">

5.uc强制竖屏

<meta name="screen-orientation" content="portrait">

6.QQ强制竖屏

<meta name="x5-orientation" content="portrait">

7.UC强制全屏

<meta name="full-screen" content="yes">

8.QQ强制全屏

<meta name="x5-fullscreen" content="true">

9.UC应用模式

<meta name="browsermode" content="application">

10.QQ应用模式

<meta name="x5-page-mode" content="app">

11.windows phone 点击无高光

  <meta name="msapplication-tap-highlight" content="no">
上一篇 下一篇

猜你喜欢

热点阅读