本文摘自PHP中文网,作者藏色散人,侵删。
bootstrap模态框加滚动条的方法:首先打开相应的代码文件;然后通过设置属性为“.modal-content {overflow: auto;max-height:300px;}”即可。

推荐:《bootstrap基础教程》
Bootstrap模态框添加滚动条(一级)
代码如下:
1 2 3 4 5 6 7 8 | #HelpModal{margin-top: 95px;height: 300px;overflow-y: hidden;}
.modal-content {overflow: auto;max-height:300px;}
<div class = "modal fade" id= "HelpModal" tabindex= "-1" role= "dialog" aria-labelledby= "myModalLabel" aria-hidden= "true" >
|
以上就是bootstrap模态框加滚动条的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
bootstrap模态框有哪些
bootstrap怎么学
bootstrap table分页问题汇总【附答案&代码】
bootstrap与html5的区别是什么
bootstrap table 怎么绑定数据源
bootstrap在uc浏览器如何兼容
easyui和bootstrap区别
bootstrap和easyui区别
dialog是bootstrap的么
bootstrap怎么实现自适应
更多相关阅读请进入《bootstrap》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » bootstrap模态框加滚动条