CSS代码 background-position: center center;background-repeat: no-repeat;background-attachment: fixed;background-size: cover; 实现效果之前: 实现效果之后: