<!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>
*{
margin: 0;
padding: 0;
}
.every{
margin: 50px auto;
width: 1226px;
height: 614px;
}
.left{
float: left;
width: 234px;
height: 614px;
background-color: palegreen;
}
.right{
float: right;
width: 978px;
height: 614px;
}
ul{
list-style: none;
}
.right li{
float: left;
margin-right: 14px;
width: 234px;
height: 300px;
background-color: plum;
}
.right li:nth-child(4n){
margin-right: 0;
}
.right li:nth-child(-n+4){
margin-bottom: 14px;
}
</style>
</head>
<body>
<!-- 浮动:如果父级的宽度不够,子级会自动换行*/ -->
<div class="every">
<div class="left"></div>
<div class="right">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</body>
</html>