HTML
<img src='google.com/ggg.png' class='b' alt=' '>
CSS
.b{
display: block;
border: 1px solid blue;
position: relative;
width: 500px;
height: 300px;
}
.b::before{
display: block;
position: absolute;
z-index: 5;
left: 0;
top: 0;
width: 500px;
height: 300px;
background: url(https://www.wowza.com/uploads/images/WebRTC.gif) center top;
content: ' ';
}
No comments:
Post a Comment