给body添加以下属性,使整个背景平铺不留白
body{
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
}
给body添加以下属性,使整个背景平铺不留白
body{
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
}