Home > Web Front-end > JS Tutorial > Regarding the solution to the problem that BootStrap modal cannot pop up in IOS9

Regarding the solution to the problem that BootStrap modal cannot pop up in IOS9

高洛峰
Release: 2016-12-24 10:54:04
Original
1618 people have browsed it

The bootstrap front-end is used in the recent project. I just updated my phone to IOS9 and found that there is a bug in the modal. There will be a problem with the pop-up box when I click on the homepage. After searching a lot of information, I finally found a solution. Add the following code to CSS

CSS

body {
 padding-right: 0px !important
}
.modal-open {
 overflow-y: auto;
}
Copy after login

PS: bootstrap datepicker does not display the problem in bootstrap modal

You can nest it outside the input box Perfectly solves the problem.

Before modification:

<div class="input-group">
  <input type="text" class="form-control date-picker" data-date-format="yyyy-mm-dd" name="contract_date" id="contract_date" value="{{ &#39;now&#39;|date(&#39;Y-m-d&#39;) }}">
  <span class="input-group-addon"><i class="fa fa-calendar bigger-110"></i></span>
</div>
Copy after login

After modification:

<div class="input-group">
  <span style="position: relative; z-index: 9999;">
    <input type="text" class="form-control date-picker" data-date-format="yyyy-mm-dd" name="contract_date" id="contract_date" value="{{ &#39;now&#39;|date(&#39;Y-m-d&#39;) }}">
  </span>
  <span class="input-group-addon"><i class="fa fa-calendar bigger-110"></i></span>
</div>
Copy after login

The above is the solution introduced by the editor to you about the BootStrap modal cannot pop up in IOS9. I hope it will be helpful to everyone. , if you have any questions, please leave me a message, and the editor will reply to you in time. I would also like to thank you all for your support of the PHP Chinese website!

For more related articles about the solution to the problem that BootStrap modal cannot pop up in IOS9, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template