<meta name="renderer" content="webkit" />
//360浏览器
//若页面需默认用极速核,增加标签:<meta name="renderer" content="webkit">
//若页面需默认用ie兼容内核,增加标签:<meta name="renderer" content="ie-comp">
//若页面需默认用ie标准内核,增加标签:<meta name="renderer" content="ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
//强制浏览器的渲染方式,默认使用chrome来渲染,然后再按照IE该浏览器的最新版本来渲染
<meta charset="utf-8">
//字符编码
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
//强制让文档的宽度与设备的宽度保持1:1,并且文档最大的宽度比例是1.0,且不允许用户点击屏幕放大浏览
<meta name="apple-mobile-web-app-capable" content="yes">
//删除默认的苹果工具栏和菜单栏
//iphone设备中的safari私有meta标签,它表示:允许全屏模式浏览;
<meta name="apple-mobile-web-app-status-bar-style" content="black">
//iphone的私有标签,它指定的iphone中safari顶端的状态栏的样式;
<meta name="format-detection" content="telephone=no">
或者直接写成:
<meta name=”format-detection” content=”telephone=no,email=no,adress=no”>
- telephone
主要作用是是否设置自动将你的数字转化为拨号连接
telephone=no 禁止把数字转化为拨号链接
telephone=yes 开启把数字转化为拨号链接,默认开启
告诉设备不识别邮箱,点击之后不自动发送
email=no 禁止作为邮箱地址
email=yes 开启把文字默认为邮箱地址,默认情况开启
- adress
adress=no 禁止跳转至地图
adress=yes 开启点击地址直接跳转至地图的功能, 默认开启
<meta http-equiv="Expires" content="-1">
//设置页面过期时间
<meta http-equiv="expires" content="Wed, 20 Jun 2007 22:33:00 GMT"> |
注意:必须使用GMT的时间格式。
<meta http-equiv="Cache-Control" content="max-age=6000">
<meta http-equiv="Cache-Control" content="no-cache">
//防止页面缓存,但是对chrome不起作用,在Chrome中,设置Cache-Control为no-store,才可以防止页面被放在cache中
<meta http-equiv="Pragma" content="no-cache">
//是用于设定禁止浏览器从本地机的缓存中调阅页面内容,设定后一旦离开网页就无法从Cache中再调出
<meta name="baidu-site-verification" content="IPj5cmlyio" />
//baidu-site-verification是百度网址认证