作者:蜗蜗家的逆时针 | 来源:互联网 | 2023-06-18 16:23
css背景图片和背景色渐变同时存在效果图:.wrapper{width:500px;height:500px;background:url(.imabg.png)
css 背景图片和背景色渐变同时存在
效果图:

.wrapper {width:500px;height: 500px;background: url(./imabg.png) no-repeat bottom / contain, linear-gradient(#333 0%, #fff 100%);background-size: 50%;
}