HTML5头部<meta>标签的一些常用信息小结

发布时间:2022-04-13 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了HTML5头部<meta>标签的一些常用信息小结脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

前言

大家都知道在移动前端开发中添加一些webkit专属的HTML5头部标签,帮助浏览器更好解析html代码,更好地将移动web前端页面表现出来。本文整理一些HTML5头部<;meta>标签常用的信息。有错误的,敬请留言指正,或可以留言补充,欢迎留言交流!

XML/HTML Code复制内容到剪贴板
  1. <!--&nbsp;字体编码 -->  
  2. <meta charset="utf-8" />  
  3.   
  4. <!-- 关键字 -->  
  5. <meta name="keywords" content="" />  
  6.   
  7. <!-- 说明 -->  
  8. <meta name="description" content="" />  
  9.   
  10. <!-- 作者 -->  
  11. <meta name="author" content="" />  
  12.   
  13. <!-- 设置文档度、是否缩放 -->  
  14. <meta name="viewport" content="width=device-width,inITial-scale=1.0,user-scalable=no" />  
  15.   
  16. <!-- 优先使用IE最新版本或chrome -->  
  17. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />  
  18.   
  19. <!-- 360读取到这个标签立即钱换到极速模式 -->  
  20. <meta name="renderer" content="webkit" />  
  21.   
  22. <!-- 禁止百度转码 -->  
  23. <meta http-equiv="Cache-Control" content="no-siteapp" />  
  24.   
  25. <!-- UC强制竖屏 -->  
  26. <meta name="screen-orientation" content="portrait" />  
  27.   
  28. <!-- QQ强制竖屏 -->  
  29. <meta name="x5-orientation" content="portrait" />  
  30.   
  31. <!-- UC强制全屏 -->  
  32. <meta name="full-scerrn" content="yes" />  
  33.   
  34. <!-- QQ强制全屏 -->  
  35. <meta name="x5-fullscreen" content="ture" />  
  36.   
  37. <!-- QQ应用模式 -->  
  38. <meta name="x5-page-mode" content="app" />  
  39.   
  40. <!-- UC应用模式 -->  
  41. <meta name="browsermode" content="application">  
  42.   
  43. <!-- window phone 点亮无高光 -->  
  44. <meta name="msapplication-tap-highlight" content="no" />  
  45.   
  46. <!-- 安卓设备不自动识别邮件地址 -->  
  47. <meta name="format-detection" name="email=no" />  
  48.   
  49. <!-- iOS设备 -->  
  50.   
  51. <!-- 添加到主屏幕的标题 -->  
  52. <meta name="apple-mobile-web-app-title" content="标题" />  
  53.   
  54. <!-- 是否启用webApp全屏 -->  
  55. <meta name="apple-mobile-web-app-capable" content="yes" />  
  56.   
  57. <!-- 设置状态栏的背景颜色,启用webapp模式时生效 -->  
  58. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent/black/default" />  
  59. <!-- 透明/黑色/默认白色 -->  
  60.   
  61. <!-- 禁止数字识别为话号码 -->  
  62. <meta name="format-detection" content="telephone=no" />  
  63.   
  64. <!-- 智能添加广告条 -->  
  65. <meta name="apple-itunes-app" content="app-id=myAppStoreID,affiliate-data=myaffiliatedata,app-argument=myurl" />  

总结

本文只是对HTML5头部<meta>标签的一些常用信息进行总结,希望对大家学习或者使用html5能有所帮助,如果有疑问大家可以留言交流,谢谢大家对脚本宝典的支持。

脚本宝典总结

以上是脚本宝典为你收集整理的HTML5头部<meta>标签的一些常用信息小结全部内容,希望文章能够帮你解决HTML5头部<meta>标签的一些常用信息小结所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:metameta