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/