.
<style>
.bg {
width: 521px;
height: 540px;
position: relative;
margin: 100px auto;
background-color: pink;
}
.bg img {
width: 100%;
height: 100%;
}
.bg::before {
position: absolute;
content: "";
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3) url(../img/arr.png) no-repeat center;
display: none;
}
.bg:hover::before {
display: block;
}
</style>
<body>
<div class="bg">
<img src="../img/mei.jpg" alt="">
</div>
</body>