默认情况下点击空白处时会关闭模态框,添加data-backdrop="static"后可以阻止关闭 转载于:https://www.cnblogs.com/zoex/p/bootstrap-modal.html