Ios9自适应

前端之家收集整理的这篇文章主要介绍了Ios9自适应前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<table class="text"><tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7

代码可以让网页的宽度自动适应手机屏幕的宽度   <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.

猜你在找的程序笔记相关文章