国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁(yè)htmlcolumnCSS Layout - 如何創(chuàng)建從頂部與列的流下布局

CSS Layout - 如何創(chuàng)建從頂部與列的流下布局

我們想知道如何創(chuàng)建從頂部與列的流下布局。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#container {
  width: 100%;
  max-width: 700px;
  margin: 2em auto;
}

.cols {
  -moz-column-count: 3;
  -moz-column-gap: 3%;
  -moz-column-width: 30%;
  -webkit-column-count: 3;
  -webkit-column-gap: 30px;
  -webkit-column-width: 30%;
  column-count: 3;
  column-gap: 30px;
  column-width: 30%;
}

.box {
  margin-bottom: 6%;
}

.box.one {
  height: 200px;
  background-color: #d77575;
}

.box.two {
  height: 300px;
  background-color: #dcbc4c;
}

.box.three {
  background-color: #a3ca3b;
  height: 400px;
}

.box.four {
  background-color: #3daee3;
  height: 500px;
}

.box.five {
  background-color: #bb8ed8;
  height: 600px;
}

.box.six {
  background-color: #baafb1;
  height: 200px;
}
</style>
</head>
<body>
  <div id="container" class="cols">
    <div class="box one"></div>
    <div class="box two"></div>
    <div class="box one"></div>
    <div class="box three"></div>
    <div class="box two"></div>
    <div class="box five"></div>
    <div class="box one"></div>
    <div class="box two"></div>
    <div class="box six"></div>
    <div class="box three"></div>
    <div class="box two"></div>
  </div>
</body>
</html>