bootstrap导入弹窗增加遮罩层

<div class="modal fade" id="loadingModal" data-backdrop="static" data-keyboard="false">
    <div style=" 200px;height:20px; z-index: 20000; position: absolute; text-align: center; left: 50%; top: 50%;margin-left:-100px;margin-top:-10px">
        <div class="progress progress-striped active" style="margin-bottom: 0;">
            <div class="progress-bar" style=" 100%;"></div>
        </div>
        <h5 style="color: #ffffff;">数据导入中...</h5>
    </div>
</div>
$('#loadingModal').modal({backdrop: 'static', keyboard: false});
                $("#loadingModal").modal('show');
                $("#myModal").css("z-index","1030"); //被遮罩层的z-index小于遮罩层        
原文地址:https://www.cnblogs.com/zhuwenxia/p/9596665.html