-
规定网页编码
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-
设置http cache时间,在快速迭代的项目中,我们可以设置max-age=604800s,也就是七天
<meta http-equiv="Cache-Control" content="max-age=604800" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="always" name="referrer">
<meta name="description" content="网站描述">
<meta name="keywords" content="关键词1、关键词2">
<meta name="viewport" content="width=1226">
-
规定360安全浏览器使用webki内核进行渲染
<meta name="renderer" content="webkit">
-
申明网站为pc站,避免被转码
<meta name="applicable-device" content="pc">
-
禁止浏览器转码
<meta http-equiv="Cache-Control" content="no-transform" />
-
禁止浏览器识别手机号码
<meta name="format-detection" content="telephone=no">
-
声明视窗大小,禁止用户缩放,移动端必备
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no
源引:http://segmentfault.com/a/1190000004180939