在 iOS 9 Safari 上打开 Bootstrap 模式时屏幕会放大 [英] Screen zooms in when a Bootstrap modal is opened on iOS 9 Safari
本文介绍了在 iOS 9 Safari 上打开 Bootstrap 模式时屏幕会放大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在 iOS9 Safari 上打开 Bootstrap 3 模式时,屏幕会放大.它在 iPhone 上的 Chrome 应用程序上按预期工作.下面是显示问题的图片.
When I open a Bootstrap 3 modal on iOS9 Safari, the screen zooms in. It is working as expected on the Chrome app on iPhone. Below are the pictures which show the issue.
Safari 截图:
Chrome 屏幕截图(预期行为):
Chrome screenshot(expected behavior):
推荐答案
以下代码为我(和其他一些人 -> 参见 GitHub 链接)修复了该问题:
The following code fixed the issue for me (and some other people -> see GitHub link):
body {
padding-right: 0px !important
}
.modal-open {
overflow-y: auto;
}
来源:https://github.com/jschr/bootstrap-modal/issues/64#issuecomment-55794181
这篇关于在 iOS 9 Safari 上打开 Bootstrap 模式时屏幕会放大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文