一、html中常用的<meta/> 标签
meta标签通常用于设置网页自身的信息
1、设置网页的编码类型
<meta charset = "UTF-8" />
2、设置文档作者的名字
<meta name="author" content="作者名字">
3、设置搜索关键字
<meta name="keywords" content="搜索关键字">
4、设置网站描述
<meta name="description" content="网站描述" >
二、开发手机端中常用的<meta/> 标签
1、基本配置
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
2、特殊配置
2.1、 禁止将数字变成电话号码
<meta name="format-detection" content="telephone=no" />
2.2、 ios私有标签
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
三、自定义图标
1、网站选项卡上面的图标
<link rel="shortcut icon" href="#">
2、手机收藏自定义图标
<link rel="apple-touch-icon-precomposed" href="#.png">
|