background-attach:fixed在安卓手机上不生效的解决办法.cover-img height 100% background-size 0 &:after content '' position fixed background-image inherit background-size auto 100% background-position center top top 0 left 0 width 100% height 100% z-index -1