<!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;
}
div {
width: 100%;
float: left;
}
img{
width: 100%;
height: 100%;
}
@media screen and (max-width:900px) and (min-width:1000px){
div{
width: 50%;
}
}
@media screen and (max-width:900px) and (min-width:1000px){
div{
width: 33%;
}
}
@media screen and (min-width:1200px){
div{
width: 25%;
}
}
</style>
</head>
<body>
<div class="wrap">
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
<div ><img src="./1.jpg" alt=""></div>
</div>
</body>
</html>