body { background: url(/img/index.jpg) no-repeat center center fixed; background-size: 100%; } 转载于:https://www.cnblogs.com/Harold-Hua/p/10960587.html