<style>
body{
background: url("head.jpg") ;
background-position: center 0;
background-repeat: no-repeat;
background-attachment: fixed;
background-size:100%;
}
</style>
```
设置头条背景图片(不填充满)
最新推荐文章于 2023-08-21 16:48:21 发布
本文深入探讨了CSS中背景属性的使用技巧,包括如何设置复杂的背景图片,如定位、重复、固定及尺寸调整等,使读者能够掌握更高级的网页设计技能。
2462

被折叠的 条评论
为什么被折叠?



