gpt4 book ai didi

javascript - 为什么我得到一个带有模态的 slider ?

转载 作者:太空宇宙 更新时间:2023-11-04 13:57:55 25 4
gpt4 key购买 nike

我的模态旁边有一个 slider ,如下所示:

this

我的模式代码是:

 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com