简体   繁体   English

当导航选项卡位于其中时,引导滚动模式不起作用

[英]bootstrap scrolling modal not working when a nav-tab is inside of it

I have a scrolling bootstrap modal .我有一个滚动引导modal Inside of it, I used a nav-tabs .在其中,我使用了nav-tabs

the scroll function is not working, but if I remove the nav-tabs , the functionality comes back.滚动 function 不起作用,但如果我删除nav-tabs ,功能就会恢复。 any ideas?有任何想法吗?

the problem could be checked in JSFiddle这个问题可以在JSFiddle中检查

any ideas?有任何想法吗?

just add overflow:scroll to modal-dialog-scrollable.modal-content class只需添加溢出:滚动到modal-dialog-scrollable.modal-content class

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: scroll;
}

the problem is, you put the <form> tag before modal tags!问题是,你把<form>标签放在模态标签之前!

you fidlle updated here你在这里更新了小提琴

https://jsfiddle.net/8sjkzb30/ https://jsfiddle.net/8sjkzb30/

Try add this to your css class:尝试将此添加到您的 css class 中:

 scroll {
    overflow: scroll
    overflow-x: hidden
    max-height: 850px
    }

it works for me....这个对我有用....

Add height with px in.modal-body使用 px in.modal-body 添加高度

    #add_wishlist_Modal .modal-body{
  height:150px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM