药到病除
html
<view class="list">
<view class="item"></view>
</view>
css
.list{
column-count:2;/* 多少列*/
-webkit-column-count:2;
column-gap:18rpx;/*列间距*/
-webkit-column-gap:18rpx;
}
.item{
height:100%;overflow: auto;/*防止元素被割裂*/
}
html
<view class="list">
<view class="item"></view>
</view>
css
.list{
column-count:2;/* 多少列*/
-webkit-column-count:2;
column-gap:18rpx;/*列间距*/
-webkit-column-gap:18rpx;
}
.item{
height:100%;overflow: auto;/*防止元素被割裂*/
}