【2023.1.12】HTML移动端背景图自适应CSS
.bg {
width:100vw;
height:100vh;
padding: 0;
margin: 0;
background-attachment: fixed;
-webkit-background-attachment: fixed;
background: url("bg.jpg") no-repeat;
background-size: 100% 100%;
-webkit-background-size: 100% 100%;
}