设为首页收藏本站关注微信<<< 抵制 IE6 人人有责 >>>
搜索
热搜: 活动 交友 discuz
查看: 1633|回复: 0
打印 上一主题 下一主题

[WEB前端] meta标签

[复制链接]
跳转到指定楼层
楼主
发表于 2015-8-28 12:22:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
复制代码
1、width : 控制viewport的大小,可以指定一个值,如600, 或者特殊的值,如device-width为设备的宽度(单位为缩放为100%的CSS的像素)

2、height : 和width相对应,指定高度

3、initial-scale : 初始缩放比例,页面第一次加载时的缩放比例

4、maximum-scale : 允许用户缩放到的最大比例,范围从0到10.0

5、minimum-scale : 允许用户缩放到的最小比例,范围从0到10.0

6、user-scalable : 用户是否可以手动缩放,值可以是:①yes、 true允许用户缩放;②no、false不允许用户缩放



  1. <meta name="apple-mobile-web-app-title" content="标题">
复制代码


添加到主屏时的标题


  1. <meta name="apple-mobile-web-app-capable" content="yes" />
复制代码

是否启用 WebAPP 全屏模式


  1. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
复制代码

状态条颜色


  1. <meta name="format-detection" content="telephone=no" />
复制代码

屏蔽数字自动识别为电话号码



  1. <meta name="msapplication-TileColor" content="#000"/>
复制代码

Windows 8 磁贴颜色


  1. <meta name="msapplication-TileImage" content="icon.png"/>
复制代码

Windows 8 磁贴图标



  1. <meta name="description" content="" />
复制代码

页面描述


  1. <meta name="keywords" content=""/>
复制代码

页面关键词

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享淘帖
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|手机版|Archiver|源于生活(个人生活娱乐工作的笔记)css3,html5,学习笔记    

GMT+8, 2024-5-2 09:36 , Processed in 0.109200 second(s), 27 queries .

Powered by Mr.Kevin-ying

© 2004-2015

快速回复 返回顶部 返回列表