//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>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2021-11-21
  • 2021-04-03
  • 2022-12-23
  • 2021-10-17
  • 2022-01-19
  • 2021-08-19
相关资源
相似解决方案