fadeIn上的ScrollTop bootbox模式 [英] ScrollTop bootbox modal on fadeIn
本文介绍了fadeIn上的ScrollTop bootbox模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用bootbox.js来制作模态但是当模态fadeIn和内容太长时,滚动条会进入底部按钮的级别。
我需要滚动条在模态出现时保持在顶部
I use bootbox.js to make modal but when the modal fadeIn and the content is too long, the scrollbar goes at the level of the bottom button. I need the scrollbar stay on top when modal appear
推荐答案
我已经解决了添加 .off(显示.bs.modal);
在bootbox.dialog之后。
I've solved adding .off("shown.bs.modal");
after the bootbox.dialog.
bootbox.dialog({ ... }).off("shown.bs.modal");
这篇关于fadeIn上的ScrollTop bootbox模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文