<head>里常用的标签

 <meta charset="utf-8"> 设置页面编码为UTF8,防止乱码,需要页面保存为UTF8无BOM格式

<meta http-equiv="X-UA-Compatible" content="IE=edge"> 为IE设置兼容模式为edge

<meta http-equiv="refresh" content="30"> 30秒后自动刷新本页面

<meta http-equiv="refresh" content="5" url="http://www.xx.com"> 5秒后自动跳转到指定页面

<meta http-equiv="expires" content="0"> 指定缓存的生存周期为已过期,即禁止缓存

<meta http-equiv="pragma" content="no-cache"> 禁止缓存

<meta http-equiv="cache-control" content="no-cache,must-revalidate"> 禁止缓存方案2

<meta name="author" content="Leo,xx@xx.com"> 标注作者

<meta name="copyright" content="本页版权归XX所有,All Rights Reserved."> 标注版权

<meta name="generator" content="WebIDE"> 标注网页开发工具

<base href="http://www.xx.com/" target="_blank"> 为相对地址指定基地址,并设置为新窗口打开

<link href="favicon.ico" rel="shortcut icon" type="image/png"> 显示并指定favicon图标的位置

<link rel="icon" type="image/png" href="favicon.ico"> 显示并指定favicon图标的位置方案2

移动端:

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"> 设置初始缩放大小与视口,并对适合分辨率的设备禁止缩放,可模拟原生APP效果

<meta name="format-detection" content="telephone=no"> 禁止电话号码识别

<meta name="format-detection" content="email=no"> 禁止邮箱识别

<meta name="format-detection" content="adress=no"> 禁止识别地址和跳转到地图功能

<meta name="apple-mobile-web-app-capable" content="yes"> 禁用工具栏与菜单栏,苹果系专属

<meta name="apple-mobile-web-app-status-bar-style" content="default"> 状态栏为默认样式,苹果系专属

<meta name="apple-mobile-web-app-status-bar-style" content="black"> 状态栏为黑色样式,苹果系专属

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> 状态栏为灰色样式,苹果系专属

<meta name="apple-mobile-web-app-status-bar-style" content="blank"> 隐藏状态栏,苹果系专属
 
PS:群里收藏的!发表到这里了
posted @ 2015-12-03 16:26  kamifun  阅读(110)  评论(0编辑  收藏  举报