<、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在一行
<、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在一行
1 个回复
BoredApe - 有问题就会有答案。
没太看懂。请详细说明一下