<dl>
  <dt>1. columns</dt>
  <dd class="box-1-1">
    <div class="layout">
      <div class="left">分类列表区域</div>
      <div class="right">主要内容区域<p>这是p标签的内容</p></div>
    </div>
  </dd>
  <dt>2. columns多列布局</dt>
  <dd class="box-1-2">
    <div class="layout">
      <div class="item">item1</div>
      <div class="item">item2</div>
      <div class="item">item3</div>
      <div class="item">item4</div>
      <div class="item">item5</div>
      <div class="item">item6</div>
      <div class="item">item7</div>
      <div class="item">item8</div>
      <div class="item">item9</div>
      <div class="item">item10</div>
    </div>
  </dd>
</dl>
dl{
  padding: 0;
  margin: 10px;
  dt{
    margin-top: 10px;
    font-size: 20px;
    color: #fff;
    background-color: #00c;
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
  }
  dd{
    border: 1px solid #ccc;
    margin: 0;
    height: 200px;
  }
  .left{background-color: pink; padding: 10px;}
  .right{background-color: skyblue; padding: 10px;}
}
.box-1-1{
  .layout{
    column-count: 2;
    column-gap: 0;
    > div{
       break-inside: avoid;
    }
  }
}
.box-1-2{
  height: auto;
  padding: 5px;
  .layout{
    column-count: 5;
    column-gap: 5px;
  }
  .item{
    background-color: orange;
    color:#fff;
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px;
    &:nth-child(2n-1){
      height: 100px;
    }
    &:nth-child(3n-1){
      height: 150px;
    }
    &:nth-child(4n-1){
      height: 180px;
    }
    &:nth-child(5n-1){
      height: 200px;
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.