方法一:
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url(../../assets/mask-bg.png)no-repeat scroll 50% 0 transparent;
background-size:100% 100%;
注意:屏幕大小不同的情况下图片会拉伸
方法二:
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url(../../assets/mask-bg.png) no-repeat center center;
background-size: cover;
图片会根据不同屏幕大小进行裁剪,不会变形