body{
background:url(“路径”);
background-size: 100% 120%;
background-repeat:no-repeat;
background-position:center;
background-attachment: fixed
}
前端页面--在上下滑动时,背景图片不动
最新推荐文章于 2024-05-29 10:40:20 发布
body{
background:url(“路径”);
background-size: 100% 120%;
background-repeat:no-repeat;
background-position:center;
background-attachment: fixed
}