<!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;
}
.wrap {
display: flex;
flex-wrap: wrap;
}
img {
flex: 25%;
}
@media screen and (max-width:1200px) {
img {
flex: 33.3%;
}
}
@media screen and (max-width:992px) {
img {
flex: 50%;
}
}
@media screen and (max-width:767px) {
img {
flex: 100%;
}
}
</style>
</head>
<body>
<div class="wrap">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
<img src="./images/pic01.jpg" alt="">
</div>
</body>
</html>