有没有一种快速简便的方法允许用户在 bootstrap modal 时与我的网页(模式之外)进行交互?显示?我正在使用第 3 版的 Bootstrap 。这也不会导致模式关闭,这是我通过将 backdrop
设置为 false
来实现的。
最佳答案
使用评论中引用的答案,我创建了这个 css 类并将其添加到模态 div。
.modal-allow-interact {
position: absolute;
top:50px;
left: 0;
right: 0;
bottom: auto;
width: 800px; /* this can be however wide you want the modal to be */
margin: 0 auto;
}
.modal-allow-interact .modal-dialog {
margin: 0;
}
关于javascript - 允许用户在 Bootstrap 模式之外进行交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39356414/