使用display:table实现多列等宽布局
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.container{
margin-left: -30px;
margin-right: -30px;
}
.content{
display: table;
width: 100%;
border-spacing: 30px 0;
}
.content div{
height: 200px;
background-color: pink;
border: 1px solid #000;
display: table-cell;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>
效果图: