<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;
        width: 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>

效果图:

 

posted on 2019-08-14 15:44  hmyCheryl  阅读(505)  评论(0编辑  收藏  举报