<view class="test"> 测试 </view> .test{ display:flex; align-items: center; justify-content: center; }
.parent { display: flex; flex-wrap: wrap; } .test{ display:inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
1.4m articles
1.4m replys
5 comments
56.7k users