<div class="img"></div> .img{ background: url("../assets/image/img.png"); background-size: 100% 100%; height: 100%; position: fixed; width: 100%; }
<div class="img"></div> .img{ background: url("../assets/image/img.png"); background-size: 100% 100%; height: 100%; position: fixed; width: 100%; }
转载于:https://www.cnblogs.com/xlfdqf/p/11149507.html