How to add scroll bar to bootstrap modal box
This article is about how to add scroll bars to bootstrap modal boxes. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Add the following code to the tag of the html file:
.modal-dialog {position: absolute; top: 0; bottom: 0; left: 0; right: 0;} .modal-content {/ * overflow-y: scroll; * / position: absolute; top: 0; bottom: 0; width: 100% } .modal-body {overflow-y: scroll; position: absolute; top: 55px; bottom: 65px; width: 100%;} .modal-header .close {margin-right: 15px;} .modal-footer {position: absolute; width: 100% Bottom: 0;}
Then open the mode box, and you can see that the scroll bar has appeared.
Thank you for reading! This is the end of the article on "how to add a scroll bar to the bootstrap modal box". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!