美文网首页
小程序 flex-direction: row遇见wx:for无

小程序 flex-direction: row遇见wx:for无

作者: 风就那么大 | 来源:发表于2023-06-25 10:40 被阅读0次

小程序中,flex-direction: row遇见wx:for无效的问题

<view class="flex-wrap" wx:for="{{data-list}}">
  <view class="flex-item">{{item}}</view>
</view>
.flex-wrp{
    display:flex;
    flex-direction: row;
    background-color: #FFFFFF;
}
.flex-item{
    width: 100px;
    height: 100px;
}

修改后:

<view class="flex-wrap">
  <view class="flex-item" wx:for="{{data-list}}">{{item}}</view>
</view>

OK.

转载来自 ---- https://blog.csdn.net/weixin_43789195/article/details/107810811

相关文章

  • flex布局

    container flex-direction 主轴的方向 flex-direction:row|row-rev...

  • Flex布局

    容器中的六个属性 flex-direction flex-direction:row / row-reverse ...

  • 弹性布局

    排列 默认横向正序排列 flex-direction:row 横向倒序排列 flex-direction:row-...

  • 微信小程序-组件-View

    flex-direction 弹性容器的方向 (1) flex-direction:row ...

  • flex布局

    flex-direction: row | row-reverse | column | column-rever...

  • flex布局

    boxdisplay: flex | inline-flex flex-direction: row | row-...

  • flex布局知识

    主轴的方向 flex-direction: row | row-reverse | column | column...

  • Weex之Flex布局模型

    标准Flex 容器属性 flex-direction: 主轴方向,默认row,水平从左往右;; row | row...

  • flex布局

    水平的主轴row,垂直的交叉轴column 主轴方向:flex-direction: row | row-reve...

  • flex

    flex-direction(调整主轴方向):row,column,row-reverse,column-reve...

网友评论

      本文标题:小程序 flex-direction: row遇见wx:for无

      本文链接:https://www.haomeiwen.com/subject/ameiydtx.html