.main {
background: url(../assets/main.png) no-repeat;
/**添加以下css */
height: 100%; //大小设置为100%
width: 100%; //大小设置为100%
position: fixed;
background-size: 100% 100%;
}
微信扫一扫
.main {
background: url(../assets/main.png) no-repeat;
/**添加以下css */
height: 100%; //大小设置为100%
width: 100%; //大小设置为100%
position: fixed;
background-size: 100% 100%;
}
相关推荐