在iOS 9 Safari上打开Bootstrap模式时,屏幕放大 [英] Screen zooms in when a Bootstrap modal is opened on iOS 9 Safari

查看:752
本文介绍了在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屏幕截图:

Safari screenshot:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆