background-image: url 图片地址
background-repeat : no-repeat 背景平铺 不重复
background-position: center centre 背景图位置
background-size: 100%; 背景图大小
前端使用div写css样式,引入background背景图,(保证背景图等比例缩放, 背景图不变形)
最新推荐文章于 2024-05-13 10:29:58 发布
background-image: url 图片地址
background-repeat : no-repeat 背景平铺 不重复
background-position: center centre 背景图位置
background-size: 100%; 背景图大小