<meta> 元素可提供有关页面的元信息(meta-information)
<meta name="apple-touch-fullscreen" content="yes">"添加到主屏幕“后,全屏显示 <meta name="apple-mobile-web-app-capable" content="yes" />
这meta的作用就是删除默认的苹果工具栏和菜单栏。content有两个值”yes”和”no”,当我们需要显示工具栏和菜单栏时,这个行meta就不用加了,默认就是显示。
format-detection —— 格式检测,用来检测html里的一些格式,主要有以下几个设置: - meta name=”format-detection” content=”telephone=no” - meta name=”format-detection” content=”email=no” - meta name=”format-detection” content=”adress=no”
或者直接写成: meta name=”format-detection” content=”telephone=no,email=no,adress=no”
“apple-mobile-web-app-status-bar-style”作用是控制状态栏显示样式
telephone 主要作用是是否设置自动将你的数字转化为拨号连接 telephone=no 禁止把数字转化为拨号链接 telephone=yes 开启把数字转化为拨号链接,默认开启
email 告诉设备不识别邮箱,点击之后不自动发送 email=no 禁止作为邮箱地址 email=yes 开启把文字默认为邮箱地址,默认情况开启
adress adress=no 禁止跳转至地图 adress=yes 开启点击地址直接跳转至地图的功能, 默认开启
清浏览器缓存用的啊,记录下来,方便以后查询,以免忘记
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
PS:清除浏览器中的缓存,它和其它几句合起来用,就可以使你再次进入曾经访问过的页面时,ie浏览器必须从服务端下载最新的内容,达到刷新的效果。width - viewport的宽度 height - viewport的高度http://blog.csdn.net/birthmarkqiqi/article/details/54381059
initial-scale - 初始的缩放比例
minimum-scale - 允许用户缩放到的最小比例
maximum-scale - 允许用户缩放到的最大比例
user-scalable - 用户是否可以手动缩放