<!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:700px;
background-image: url(./c7ee5c2bc223b35667ede903cf19aa7.jpg);
background-size: cover;
opacity: .5;
}
.son{position: absolute;
top: 300px;
left: 600px;
}
div.son:hover+.father{
opacity: 1;
}
</style>
</head>
<body>
<div class="father">
<div class="son"><img src="./e22fbbcb4f6bceaded6ade0f32ce306.jpg" alt=""></div>
</div>
</body>
</html>
11月18日作业
最新推荐文章于 2024-08-22 14:32:34 发布