引导弹出窗口未显示在我的网站上。我从 Bootstrap 官方网站复制了弹出代码。 这是我的网站链接Link to webiste
最佳答案
目前状况:
- 查询引导模式不起作用
- 以下代码是从您给定的网址 http://home.india-market.online/ 复制粘贴的
- 它在单独的示例中正常工作
Solution:
- You have footer,
<footer class="footer-social-icon text-center section_padding_70 clearfix">
- Some how there is
z-index:-101;
andposition:fixed;
in<footer>
- You need to remove model outside from
<footer>
and apply directly before</body>
tag ends.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalLong">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
我希望它能正常工作。
网站的旧代码是:
关于javascript - Bootstrap 弹出模式在我的网页上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52090545/