ice_yulong
秋之白话
采纳率100%
2018-08-28 14:35 浏览 3.2k

bootstrap modal框出现蒙层,无法点击modal框内容

5

图片说明

 <header>
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navb-header">
                    <div class="navbar-brand">Personal resume</div>
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#divNav">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div id="divNav" class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <button type="button" class="btn btn-success navbar-btn" data-toggle="modal" data-target="#divModal" title="Print">Print</button>
                            <div id="divModal" class="modal">
                                <div class="modal-dialog">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"><span>&times;</span></button>
                                            <h4 class="modal-title">Print Resume</h4>
                                        </div>
                                        <div class="modal-body">
                                            Print Preview or Print Config
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                            <button type="button" class="btn btn-default">Print</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答 默认 最新

  • 已采纳
    wangpan123987 wangpan123987 2018-08-29 01:59

    把model的z-index设置的高一点

    点赞 2 评论 复制链接分享
  • ice_yulong 秋之白话 2018-08-28 17:26
    .modal-backdrop{z-index:0;}
    点赞 评论 复制链接分享

相关推荐