在一个div上平铺一张透明的图片并且设置背景色为红色
背景图片在上,背景颜色在下
<!DOCTYPE HTML>
<html>
<head>
<style>
.img{
width:500px;
height:500px;
background-image:url("https://gss0.baidu.com/9fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/63d9f2d3572c11dfb3058150602762d0f603c2e8.jpg");
background-size:100% 100%;
background-repeat:no-repeat;
background-color:red;
}
</style>
</head>
<body>
<div class="img"></div>
</body>
</html>