Bootstrap4模板中出现的shrink-to-fit=no是什么意思
生活随笔
收集整理的這篇文章主要介紹了
Bootstrap4模板中出现的shrink-to-fit=no是什么意思
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
bootstrap4示例模板中出現這樣的代碼
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
這行代碼的作用可以讓網頁的寬度自動適應手機屏幕的寬度,但是多了shrink-to-fit=no,
這是什么鬼?查找文檔得知,主要是為了兼容iOS9
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.
總結
以上是生活随笔為你收集整理的Bootstrap4模板中出现的shrink-to-fit=no是什么意思的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果发布新款iPad Pro国行6229
- 下一篇: 阿里影业附属4亿收购银河酷娱60%股权