背景中的bootstrap模态不可用

时间:2017-01-25 13:17:15

标签: html css bootstrap-modal

我在我的网站上使用bootstrap,我有完美的模态。 从昨天开始,我的模态不再可用了。应覆盖模态周围区域的灰色背景现在位于整个页面上。因此,无法单击模态或使用它。我必须手动重新加载页面。

以下是截图: enter image description here

我使用最新版本的Bootstrap(3.3.7)。即使使用官方Bootstrap文档中最基本的模态例子,它也是如此:

<!-- Trigger the modal with a button -->
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Modal Header</h4>
      </div>
      <div class="modal-body">
        <p>Some text in the modal.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>  

我不知道它可能来自哪里,因为它是我买的模板,我没有创造自己。

提前感谢您的任何帮助

0 个答案:

没有答案
相关问题