风之源
风之源
  • 发布:2022-07-20 20:38
  • 更新:2022-07-21 14:00
  • 阅读:177

APP 组件内 class不生效,style生效

分类:uni-app
App

<、view class="flex-row" > <、text>1</、text> <、text>3<、/text> <、/view>

.flex-row {  
    flex-direction: row;  
    align-items: center;  
}  

上面的写法1和3是占两行

直接用style="flex-direction: row;align-items: center;"的话就是1和3在一行

2022-07-20 20:38 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

没太看懂。请详细说明一下

要回复问题请先登录注册