<style>
.tudou{
position: relative;
width: 444px;
height: 320px;
background-color: aquamarine;
margin: 80px auto;
}
.tudou .t{
width: 100%;
height: 100%;
}
.mask{
/* 隐藏遮罩层 */
display: none;
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .3) url(../css5定位/images/arr.png) no-repeat center;
}
/* 当鼠标经过土豆盒子,就让里面的遮罩层显示出来 */
.tudou:hover .mask{
/* 显示元素 */
display: block;
}
</style>
</head>
<body>
<div class="tudou">
<img class="t" src="../css5定位/images/tudou.jpg" alt="">
<div class="mask">
<!-- <img class="t1" src="../css5定位/images/arr.png" alt=""> -->
</div>
</div>
运行结果: