我的模态旁边有一个 slider ,如下所示:
我的模式代码是:
div#myModal.modal.fade.col-md-8.col-md-offset-2(tabindex="-1", role="dialog", aria-labelledby="myModalLabel" aria-hidden="true")
div.modal-content
div.modal-body
p Modal body content.
div.modal-footer
button.btn.btn-default(type="button", data-dismiss="modal") Close
然后我从 javascript
调用模态:
$('#joinBtn').click(function(event) {
$('#myModal').modal({
show: true
})
});
最佳答案
你应该可以添加
div#myModal.modal.fade.col-md-8.col-md-offset-2(tabindex="-1", role="dialog", aria-labelledby="myModalLabel" aria-hidden="true" style="overflow-y: auto;")
或者在您的 CSS 中您可以添加:
.modal {
overflow-y: auto;
}
关于javascript - 为什么我得到一个带有模态的 slider ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21710739/