一行CSS代码搞定: body.modal-open { position: fixed; width: 100%; } 转载于:https://www.cnblogs.com/huangcong/p/8674430.html