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