bootstrap中的modal无法正常使用

coder_xsy coder_xsy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
这个是引用(都是在一个html文件中)
<script src = "jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="bootstrap.css">
<stript src = "popper.min.js"></stript>
<script src="bootstrap.js"></script> (都是官网 上下的,不过是bootstrap4.0)
这是modal这部分的代码
<div class = "row">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">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>
</div>
代码如上,但是用chrome浏览器打开html文件之后点击对应的button,没有反应呢?求大佬们解答!已经困惑了一个礼拜,还没搞好,有点急
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
coder_xsy
CSS 61,116 成员 60,701 内容