一些有用的meta设置方法(必看)

2017-02-21 18:40:33 html
下面小编就为大家带来一篇一些有用的meta设置方法(必看)。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

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

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

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

<meta name="apple-mobile-web-app-status-bar-style" content="#6f9ddc">

<!-- 页面的编码方式 -->

<meta charset="utf-8">

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

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

<!-- 搜索引擎优化,页面关键词,每个网页应具有描述该网页内容的一组唯一的关键字 -->

<meta name="keywords" content="">

<!-- 搜索引擎优化,页面描述,每个网页都应有一个不超过 150 个字符且能准确反映网页内容的描述标签 -->

<meta name="description" content="">

<!-- 优化移动浏览器的显示,缩放比例默认为1,不允许手动缩放。如果不是响应式网站,不要使用initial-scale或者禁用缩放。 -->

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

<!-- 使用 webkit 内核渲染网站 -->

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

<!-- 禁止百度转码 -->

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

<!-- 添加到主屏后的图标 -->

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

<!-- 添加到主屏后-启用 WebApp 全屏模式(Android) -->

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

<!-- 添加到主屏后的图标(Android) -->

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

<!-- 添加到主屏后-启用 WebApp 全屏模式(iOS) -->

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

<!-- 添加到主屏后-设置状态栏的背景颜色(iOS) -->

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

<!-- 添加到主屏后的标题(iOS) -->

<!-- <meta name="apple-mobile-web-app-title" content="南航办公自动化" /> -->

<!-- 添加到主屏后的图标(iOS) -->

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

<!-- 添加到主屏后的图标(win8) -->

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

<!-- 添加到主屏后-设置状态栏的背景颜色(win8) -->

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

<!-- 关闭移动端手机号码识别(iOS) -->

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

<!-- 关闭移动端邮箱识别(Android) -->

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

以上这篇一些有用的meta设置方法(必看)就是小编分享给大家的全部内容了,希望能给大家一个参考

原文地址:http://www.cnblogs.com/jiekk/p/5695031.html