纯css瀑布流
//父标签
.container{
column-count: 2;//想要排成的列数
column-gap: 20rpx;//左右间距
}
// 子标签
.item {
break-inside: avoid; //解决瀑布流图片队列文字换列问题
}
//父标签
.container{
column-count: 2;//想要排成的列数
column-gap: 20rpx;//左右间距
}
// 子标签
.item {
break-inside: avoid; //解决瀑布流图片队列文字换列问题
}