flexBox justify-content center

以 flex-direction: row 为参考。

center:在主轴中居中对齐。

1.Web

flex-direction: row;
justify-content: center;

C5E1F5FE-138A-4608-8589-14FCFB4394E4

2.React Native

flexDirection: 'row',
justifyContent: 'center',

E5304BCD-B7B1-4D8A-BA8D-CB81A543CED0

3.微信小程序

flex-direction: row;
justify-content: center;

722A80DE-E127-4FD3-8483-0ED599A1C3B6