为什么80%的码农都做不了架构师?   小程序

                                                                                       

如果子容器中的view需要居中的话,那需要在父容器中设置居中

水平居中:

 display: flex;  flex-direction: column;  align-items: center;

垂直居中

display: flex;align-items: center;

水平垂直居中  

 display: flex;  align-items: center;  justify-content: center;

 

TAG标签: 微信小程序按钮居中

http://www.xiaochengxub.com/read-104195.html