<html lang="zh"> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> <style> .main { margin-left: -30px; margin-right: -30px; } .wrap { display: table; 100%; border-spacing: 30px 0; } .wrap > div { background: #f00; display: table-cell; } </style> </head> <body> <div class="main"> <div class="wrap"> <div style="height: 100px;">1</div> <div>1</div> <div>1</div> <div>1</div> <div>1</div> </div> </div> </body> </html>
效果图: