移动端对background-attachment: fixed支持的不好,但可以采用如下方式来处理。
background-attachment: fixed
body:before { content: ' '; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; background: url(path/to/image) center 0 no-repeat; background-size: cover; }