字符编码 charset (charset一定要写第一行)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
网页关键字 keywords
网站内容的描述 description
添加头部内容http-equiv 使用meta重定向 refresh
兼容 renderer 用webkit内核解析渲染
百度禁止转码 no-siteapp (百度会自动对网页进行转码)
定义引擎的搜索方式 robotterms 是一组使用英文逗号「,」分割的值,通常有如下几种取值:none,noindex,nofollow,all,index和follow
移动端页面布局 viewport
content 参数:
width viewport 宽度(数值/device-width)
height viewport 高度(数值/device-height)
initial-scale 初始缩放比例
maximum-scale 最大缩放比例
minimum-scale 最小缩放比例
user-scalable 是否允许用户缩放(yes/no)
<meta name="keywords" content=" jacklee,网页,前端,理科生"/>
<meta name="distribution" content="正在学习ing"/>
<meta http-equiv="refresh" content="5,url=http://www.baidu.com"/>
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="robots" content="index,follow">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
网友评论