web常用的pc以及移动端meta标签

 淡蛋   2019-01-22 10:34   484 人阅读  0 条评论

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

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

<meta name="force-rendering" content="webkit"/>

<!-- Set render engine for 360 browser -->

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

<!-- No Baidu Siteapp-->

<meta http-equiv="Cache-Control" content="no-siteapp"/>


<link rel="icon" type="image/png" href="assets/i/favicon.png">

<!-- Add to homescreen for Chrome on Android -->

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

<link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">


<!-- Add to homescreen for Safari on iOS -->

<meta name="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="Amaze UI"/>

<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">


<!-- Tile icon for Win8 (144x144 + tile color) -->

<meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">

<meta name="msapplication-TileColor" content="#0e90d2">


<!-- 忽略识别邮箱、忽略数字自动识别为电话号码 -->

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


<!-- 移动端常见的meta -->

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />

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

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

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

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />

<meta name="apple-mobile-web-app-capable" content="yes" /><!-- 删除苹果默认的工具栏和菜单栏 -->

<meta name="apple-mobile-web-app-status-bar-style" content="black" /><!-- 设置苹果工具栏颜色 -->

<meta name="format-detection" content="telphone=no, email=no" /><!-- 忽略页面中的数字识别为电话,忽略email识别 -->

<!-- 启用360浏览器的极速模式(webkit) -->

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

<!-- 避免IE使用兼容模式 -->

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

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

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

<!-- 微软的老式浏览器 -->

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

<!-- uc强制竖屏 -->

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

<!-- QQ强制竖屏 -->

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

<!-- UC强制全屏 -->

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

<!-- QQ强制全屏 -->

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

<!-- UC应用模式 -->

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

<!-- QQ应用模式 -->

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

<!-- windows phone 点击无高光 -->

<meta name="msapplication-tap-highlight" content="no">

<!-- 适应移动端end -->


<!-- 优先使用 IE 最新版本和 Chrome 的 meta -->

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<!-- 关于X-UA-Compatible -->

<meta http-equiv="X-UA-Compatible" content="IE=6" ><!-- 使用IE6 -->

<meta http-equiv="X-UA-Compatible" content="IE=7" ><!-- 使用IE7 -->

<meta http-equiv="X-UA-Compatible" content="IE=8" ><!-- 使用IE8 -->


本文地址:https://www.lishizi.com/seojianzhan/32.html
版权声明:本文为原创文章,版权归 淡蛋 所有,未经允许不得转载本内容!

 发表评论


表情

    还没有留言,还不快点抢沙发?