码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap模态框无法调用问题

时间:2018-10-27 22:35:41      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:ima   顺序   tab   模态   fine   trap   target   ogg   rap   

<button class="btn btn-success " data-toggle="modal" data-target="#myModal">添加</button>

<div id="myModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">×</span></button>
                <h4 class="modal-title">Modal title</h4>
            </div>
            <div class="modal-body">
                <p>One fine body…</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

 模态框弹不出来,

将调用顺序改成如下,即可正常弹出

<script src="../../jquery-3.3.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>

 

bootstrap模态框无法调用问题

标签:ima   顺序   tab   模态   fine   trap   target   ogg   rap   

原文地址:https://www.cnblogs.com/weidaijie/p/9863689.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!