方法一
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
#top{
display: flex;
margin-left: 300px;
width: 1000px;
height: 200px;
justify-content: space-between;
}
#bottom{
display: flex;
margin-left: 100px;
}
#small{
border: 1px solid black;
}
#big{
border: 1px solid red;
position: absolute;
display: none;
}
</style>
</head>
<body>
<div id="top">
<img src="../img/shirt_1.jpg" alt="" id="small" >
<img src="../img/shirt_2.jpg" alt="" id="small">
<img src="../img/shirt_3.jpg" alt="" id="small">
<img src="../img/shirt_4.jpg" alt="" id="small">
</div>
<div id="bottom">