用户登录
用户注册

分享至

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

  • 作者: 爱好难啊
  • 来源: 51数据库
  • 2021-08-22

前言

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

xml/html code复制内容到剪贴板
  1. <!-- 字体编码 -->  
  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能有所帮助,如果有疑问大家可以留言交流,谢谢大家对的支持。

软件
前端设计
程序设计
Java相关