<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片透明</title>
<style>
a{
display: block;
width: 200px;
height: 100px;
position: relative;
}
.mask{
width: 100%;
height: 100%;
background: rgb(0,0,0,.4) url() no-repeat center;
position: absolute;
left: 0px;
top: 0px;
display: none;
}
a:hover .mask{
display: block;
}
</style>
</head>
<body>
<a href="">
<img src="images/icon3.png" alt="">
<div class="mask"></div>
</a>
</body>
</html>
图片透明遮罩013
最新推荐文章于 2021-05-31 11:12:29 发布