<meta name="viewport" content="width=device-width, initial-scale=1.0">
2014-08-26 20:07
501 查看
在编写Bootstrap前端的时候遇到了这行代码,<meta name="viewport" content="width=device-width, initial-scale=1.0">
在下面给出解释, name="viewport" 指的是移动端的浏览器,看到这段代码,马上就知道这是移动端浏览器。
width=device-width,指的是移动端页面的宽度等于设备的宽度。
initial-scale=1.0指的是
在下面给出解释, name="viewport" 指的是移动端的浏览器,看到这段代码,马上就知道这是移动端浏览器。
width=device-width,指的是移动端页面的宽度等于设备的宽度。
initial-scale=1.0指的是
页面将是原本尺寸展示,如果后面是2.0的话,就是是将页面放大两倍
相关文章推荐
- <meta name="viewport" content="width=device-width, initial-scale=1.0>
- 关于 <meta name="viewport" content="width=device-width, initial-scale=1.0">的解释
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>解释
- html5 viewport-关于<meta name="viewport" content="width=device-width, initial-scale=1.0">的解释
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">是含义
- [HTML] <meta name="viewport" content="width=device-width,initial-scale=1.0">释义
- <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0, user-sc
- <meta name="viewport" content="width=device-width, initial-scale=1.0">的说明
- 关于<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-sc..
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>解释
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>含义
- <meta name="viewport" content="width=device-width,initial-scale=1.0"
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale
- meta name="viewport" content="width=device-width,initial-scale=1.0" 解释
- meta name="viewport" content="width=device-width,initial-scale=1.0" 解释
- meta name="viewport" content="width=device-width,initial-scale=1.0" 解释