body {
padding-right: 0px !important;
}
*.modal-open {
overflow-y: scroll;
padding-right: 0 !important;
}
在引入bootstrap样式后,页面增加上述样式。
参考:
https://segmentfault.com/q/1010000002945721
http://www.uedbox.com/bootstrap-modal-bug/
本文介绍了一种解决引入Bootstrap后页面模态框出现滚动条偏移问题的方法,通过自定义CSS样式来调整模态框打开时的页面布局。

6286

被折叠的 条评论
为什么被折叠?



