bootstrap 点击窗口空白不消失(modal)

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/zxf1242652895/article/details/79814731

<div class="modal fade bs-example-modal-sm2" tabindex="-1" role="dialog"
aria-hidden="true" data-backdrop="static">
    <div class="table-responsive">
        <div class="modal-dialog modal-sm2">
            <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" id="myModalLabel2">
                        <label data-locale="i18n_wasteQuantity">
                            测试
                        </label>
                    </h4>
                </div>
                <div class="modal-body">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered">
                            <tbody id="wasteStatisticsContent">
                            </tbody>
                        </table>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">
                            <label data-locale="i18n_cancel">
                            </label>
                        </button>
                        <button type="button" class="btn btn-primary" data-dismiss="modal">
                            <label data-locale="i18n_sure" οnclick="saveStrWasteNum()">
                            </label>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
注意:添加属性
data-backdrop="static"

点击创业

展开阅读全文

没有更多推荐了,返回首页