<meta>中的shrink-to-fit=no
来源:互联网 发布:百度推广搜索合作网络 编辑:程序博客网 时间:2024/06/04 19:02
下面的一行代码可以让网页的宽度自动适应手机屏幕的宽度
<meta name="viewport" content="width=device-width, initial-scale=1">
但在IOS9中要想起作用,得加上"shrink-to-fit=no"
,原因如下:
Viewport meta tags using
"width=device-width"
cause the page to scale down to fit content that overflows the viewport bounds. You can override this behavior by adding"shrink-to-fit=no"
to your meta tag as shown below. The added value will prevent the page from scaling to fit the viewport.
阅读全文
1 0
- <meta>中的shrink-to-fit=no
- shrink-to-fit和shrink-to-fit=no
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">用处
- shrink-to-fit(自适应宽度)
- RD8004: IE6 IE7 IE8(Q) 中浮动元素宽度的 shrink-to-fit 算法与标准规定的算法不同
- HTML中的Meta标签(no-cache)
- Script to shrink tempfiles
- DataGridViewPrinter(Fit to Page)
- relocation truncated to fit: R_X86_64_PC32
- Autoresize UIView to fit subviews
- relocation truncated to fit: R_X86_64_32
- Fit background image to div
- how to change my keyboard code to fit my special key? shift+w=1
- shrink
- shrink
- shrink
- fit
- Scientists Say Arctic Ice Continues to Shrink
- 获取微信公众平台的用户openid
- 【bzoj1717】[Usaco2006 Dec]Milk Patterns 产奶的模式
- pomelo(五) Tutorial 2 Treasures
- WordPress主题开发: 制作文章页面single.php
- 《算法导论》个人笔记(序言)
- <meta>中的shrink-to-fit=no
- /dev/fb0入门练习
- 二叉树非递归版的后序遍历算法
- 还原SQL Server数据库
- 每日一练(20171025)
- ViewPager+TimerTask实现Gallery画廊效果
- NBSocket
- [java]日期工具类-DateUtil
- (DT系列一)DTS结构及其编译方法