<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.father{
position:relative;
height: 400px;
width: 711px;
left: 400px;
top: 150px;
}
.son2{
position: absolute;
top: 45%;
right: 50%;
}
.son2{
z-index: 2;
}
.son3{
position: absolute;
bottom: -1%;
right: -1%;
width: 711px;
height: 400px;
}
.son3:hover{
background-color:rgb(140, 134, 134);
opacity: 0.5;
border: 5px solid orange;
z-index: 3;
}
</style>
</head>
<body>
<div class="father" id="">
<img src="./arr.png" alt="" class="son2">
<div class="son" ><img src="./sed.jpg" alt="" class="son3"></div>
</div>
</body>
</html>
zuoye2
最新推荐文章于 2024-07-20 10:36:53 发布