//index.css
.view_outside{
display: -webkit-flex;
flex-direction: row/column; //row橫向 column縱向
}
.view_in{
flex: 1;
}
//index.wxml
<view class="view_outside">
<view class="view_in">選row是橫向,選column是縱向排列,flex控制高寬值</view>
<view class="view_in">選row是橫向,選column是縱向排列,flex控制高寬值</view>
</view>