Screen zooms in when a Bootstrap modal is opened on iOS 9 Safari

Alan SavageSandeep Singh提出了一个问题:Screen zooms in when a Bootstrap modal is opened on iOS 9 Safari,或许与您遇到的问题类似。

回答者KingDome24给出了该问题的处理方式:

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;
}

Source: https://github.com/jschr/bootstrap-modal/issues/64#issuecomment-55794181

希望本文对你有帮助,欢迎支持JavaScript中文网