1. <!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 -->
  2. <html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa -->
  3. <head>
  4. <!-- 声明文档使用的字符编码 -->
  5. <meta charset='utf-8'>
  6. <!-- 优先使用 IE 最新版本和 Chrome -->
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  8. <!-- 页面描述 -->
  9. <meta name="description" content="不超过150个字符"/>
  10. <!-- 页面关键词 -->
  11. <meta name="keywords" content=""/>
  12. <!-- 网页作者 -->
  13. <meta name="author" content="name, email@gmail.com"/>
  14. <!-- 搜索引擎抓取 -->
  15. <meta name="robots" content="index,follow"/>
  16. <!-- 为移动设备添加 viewport -->
  17. <meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
  18. <!-- `width=device-width` 会导致 iPhone 5 添加到主屏后以 WebApp 全屏模式打开页面时出现黑边 http://bigc.at/ios-webapp-viewport-meta.orz -->
  19.  
  20. <!-- iOS 设备 begin -->
  21. <meta name="apple-mobile-web-app-title" content="标题">
  22. <!-- 添加到主屏后的标题(iOS 6 新增) -->
  23. <meta name="apple-mobile-web-app-capable" content="yes"/>
  24. <!-- 是否启用 WebApp 全屏模式,删除苹果默认的工具栏和菜单栏 -->
  25.  
  26. <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
  27. <!-- 添加智能 App 广告条 Smart App Banner(iOS 6+ Safari) -->
  28. <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
  29. <!-- 设置苹果工具栏颜色 -->
  30. <meta name="format-detection" content="telphone=no, email=no"/>
  31. <!-- 忽略页面中的数字识别为电话,忽略email识别 -->
  32. <!-- 启用360浏览器的极速模式(webkit) -->
  33. <meta name="renderer" content="webkit">
  34. <!-- 避免IE使用兼容模式 -->
  35. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  36. <!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 -->
  37. <meta name="HandheldFriendly" content="true">
  38. <!-- 微软的老式浏览器 -->
  39. <meta name="MobileOptimized" content="320">
  40. <!-- uc强制竖屏 -->
  41. <meta name="screen-orientation" content="portrait">
  42. <!-- QQ强制竖屏 -->
  43. <meta name="x5-orientation" content="portrait">
  44. <!-- UC强制全屏 -->
  45. <meta name="full-screen" content="yes">
  46. <!-- QQ强制全屏 -->
  47. <meta name="x5-fullscreen" content="true">
  48. <!-- UC应用模式 -->
  49. <meta name="browsermode" content="application">
  50. <!-- QQ应用模式 -->
  51. <meta name="x5-page-mode" content="app">
  52. <!-- windows phone 点击无高光 -->
  53. <meta name="msapplication-tap-highlight" content="no">
  54. <!-- iOS 图标 begin -->
  55. <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png"/>
  56. <!-- iPhone 和 iTouch,默认 57x57 像素,必须有 -->
  57. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png"/>
  58. <!-- Retina iPhone 和 Retina iTouch,114x114 像素,可以没有,但推荐有 -->
  59. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png"/>
  60. <!-- Retina iPad,144x144 像素,可以没有,但推荐有 -->
  61. <!-- iOS 图标 end -->
  62.  
  63. <!-- iOS 启动画面 begin -->
  64. <link rel="apple-touch-startup-image" sizes="768x1004" href="/splash-screen-768x1004.png"/>
  65. <!-- iPad 竖屏 768 x 1004(标准分辨率) -->
  66. <link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png"/>
  67. <!-- iPad 竖屏 1536x2008(Retina) -->
  68. <link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png"/>
  69. <!-- iPad 横屏 1024x748(标准分辨率) -->
  70. <link rel="apple-touch-startup-image" sizes="2048x1496" href="/splash-screen-2048x1496.png"/>
  71. <!-- iPad 横屏 2048x1496(Retina) -->
  72.  
  73. <link rel="apple-touch-startup-image" href="/splash-screen-320x480.png"/>
  74. <!-- iPhone/iPod Touch 竖屏 320x480 (标准分辨率) -->
  75. <link rel="apple-touch-startup-image" sizes="640x960" href="/splash-screen-640x960.png"/>
  76. <!-- iPhone/iPod Touch 竖屏 640x960 (Retina) -->
  77. <link rel="apple-touch-startup-image" sizes="640x1136" href="/splash-screen-640x1136.png"/>
  78. <!-- iPhone 5/iPod Touch 5 竖屏 640x1136 (Retina) -->
  79. <!-- iOS 启动画面 end -->
  80.  
  81. <!-- iOS 设备 end -->
  82. <meta name="msapplication-TileColor" content="#000"/>
  83. <!-- Windows 8 磁贴颜色 -->
  84. <meta name="msapplication-TileImage" content="icon.png"/>
  85. <!-- Windows 8 磁贴图标 -->
  86.  
  87. <link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml"/>
  88. <!-- 添加 RSS 订阅 -->
  89. <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
  90. <!-- 添加 favicon icon -->
  1. <!--清除网页缓存-->
  2.  
  3. <meta http-equiv="Cache-Control"content="no-cache, no-store, must-revalidate" />
  4.  
  5. <meta http-equiv="Pragma" content="no-cache" />

     <meta http-equiv="Expires" content="0" />

  1. <!--禁止网页点击时缩放-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  1. <title>标题</title>
  2. </head>

meta标签常用设置的更多相关文章

  1. 【微信小程序项目实践总结】30分钟从陌生到熟悉 web app 、native app、hybrid app比较 30分钟ES6从陌生到熟悉 【原创】浅谈内存泄露 HTML5 五子棋 - JS/Canvas 游戏 meta 详解,html5 meta 标签日常设置 C#中回滚TransactionScope的使用方法和原理

    [微信小程序项目实践总结]30分钟从陌生到熟悉 前言 我们之前对小程序做了基本学习: 1. 微信小程序开发07-列表页面怎么做 2. 微信小程序开发06-一个业务页面的完成 3. 微信小程序开发05- ...

  2. META标签的设置

    ㈠定义及用法 ⑴<meta> 元素可提供有关页面的元信息(meta-information),比如针对搜索引擎和更新频度的描述和关键词. ⑵<meta> 标签位于文档的头部,不 ...

  3. HTML中的meta标签常用属性及其作用总结

    文章同步到github 以前没怎么太注意过meta标签的作用,只是简单了解一些常用属性,现在结合个人了解的进行记录与总结: 元数据 首先需要了解一下元数据(metadata)元素的概念,用来构建HTM ...

  4. meta标签常用属性整理

    在segmentfault看到这篇文章,觉得整理的很详细,所以转载过来和大家分享一下. 原文地址:http://segmentfault.com/blog/ciaocc/119000000240791 ...

  5. meta标签常用属性

    Keywords(关键词) 说明:告诉搜索引擎你网页的关键字(keywords)使用方法:<meta name="keywords" content="标签,属性, ...

  6. meta标签中设置以极速模式打开网页

    1.网页meta标签中X-UA-Compatible属性的使用的极速模式 <meta http-equiv="X-UA-Compatible" content="I ...

  7. H5 meta标签常用写法

    <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content=" ...

  8. meta 详解,html5 meta 标签日常设置

    <!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 --> <html lang="zh-cmn-Hans"&g ...

  9. 移动端meta标签缓存设置

    1.<meta charset="utf-8"> 2.<meta content="width=device-width, initial-scale= ...

随机推荐

  1. 题解——loj6280 数列分块入门4 (分块)

    分块维护一个区间和 然后记得更新的时候左边角块的tag不要打错到右边角块 #include <cstdio> #include <algorithm> #include < ...

  2. Redis 应用:缓存

    使用Redis做预定库存缓存功能 缓存是在业务层做的,准确讲应该是在MVC模型中Model的ORM里面 PHP项目的缓存从以前的APC缓存逐渐切换到Redis中,并且根据Redis所支持的数据结构做了 ...

  3. 安装 Linux 内核 4.0

    大家好,今天我们学习一下如何从Elrepo或者源代码来安装最新的Linux内核4.0.代号为‘Hurr durr I'm a sheep’的Linux内核4.0是目前为止最新的主干内核.它是稳定版3. ...

  4. getAttribute与getParameter的区别

    1.getParameter得到的是字符串,其取值源于jsp页面,从jsp页面中接受一个存在的参数,多用于servlet中,用于判断业务的类型和跳转页面.如: request.getParameter ...

  5. Git stash 常用命令

    参考: Git: How to look at the stash Git学习笔记05--git stash Git stash 常用命令 1.git stash: 保存当前的工作进度: 2.git ...

  6. zepto 入门

    2017-03-17 文章来源:http://www.cnblogs.com/daysme zepto 简介 jq虽然有一些衍生的插件可用在移动端上,但它有点大. click 有,但有问题 onmou ...

  7. 1、Ansible简介及简单安装、使用

    参考Ansible权威指南:https://ansible-tran.readthedocs.io/en/latest/index.html 以下内容学习自马哥教育 Ansible: 运维工作:系统安 ...

  8. MySQL like用法

    MySQL LIKE 语法 LIKE运算符用于WHERE表达式中,以搜索匹配字段中的指定内容,语法如下: WHERE column LIKE pattern WHERE column NOT LIKE ...

  9. memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

    1.在http://libevent.org/   下载libevent-2.0.22-stable.tar.gz 2.tar -zxvf libevent-2.0.22-stable.tar.gz ...

  10. 如何对接oracle 建立pdb

    Oracle数据库的结构是一个数据库实例下有许多用户,每一个用户有自己的表空间,即每一个用户相当于MySQL中的一个数据库.不久前下了oracle 12c的数据库,安装之后建user时才知道oracl ...