1.meta标签http-equiv属性语法格式:
<meta http-equiv="expires" content="wed,20 Jun 2007 22:33:00 GMT"/> <!--expires 期限,可用于网页的到期时间,一旦网页过期,必须到服务器上重新传输-->
登录后复制
2.content-type (显示字符集的设定) 设定页面使用的字符集
<meta http-equiv="content-type" content="text/html" charset="utf-8"/>
登录后复制
3.keywords (关键字)
<meta http-equiv="Keywords" content="keywords1,keywords2...."/>
登录后复制
4.description (描述)
<meta http-equiv="description" content="this is my page"/>
登录后复制
5.format-detection 格式检测
1》 忽略将页面中的数字识别为电话号码
<meta http-equiv="format-detection" content="telephone=no"/>
登录后复制
2》告诉设备不识别邮箱,点击之后不自动发送。
<meta http-equiv="format-detection" content="email=no"/>
登录后复制
6.viewport
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
登录后复制
initial-scale:[0.0-1.0] 定义初始缩放比例
minimum-scale:[0.0-1.0] 定义缩小最小比例
maximum-scale:[0.0-1.0] 定义放大最大比例
user-scalable: yes/no 用户允不允许手动缩放页面
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!