display: flex;//必须有,不然没有效果
justify-content: center;
align-items: center;

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

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