<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="定位.css">
</head>
<body>
<img src="./sed2.jpg" class="img2">
<img src="./sed.jpg" class="img1">
</body>
</html>
.img-container {
position: relative;
}
.img1 {
position: relative;
z-index: 1;
}
.img2 {
position: absolute;
top: 0;
left: 0;
z-index: 2;
}
.img2:hover{
z-index: 0;
}