weex icon indicating copy to clipboard operation
weex copied to clipboard

怎么实现像bootstrap的栅格系统一样的布局

Open solaronke opened this issue 9 years ago • 2 comments

列表里每一行有三列,怎么样才能实现像bootstrap的col-md-4这样的布局排列

solaronke avatar Jan 07 '17 05:01 solaronke

参考 flexbox,写三个 div,然后都设置为 flex: 1

Jinjiang avatar Jan 07 '17 14:01 Jinjiang

父元素设置display: flex,子元素均设置为flex: 1可破,注意flex direction

BoringDays avatar Jan 09 '17 09:01 BoringDays