button是一个行内块级元素display:inline-block;

所以处理方式很简单,可以用以下两种方式:

方式一:

div style="text-align:center"   button按钮居中/button                      /div

方式二:

div      button  style="display:block;margin:0 auto"按钮居中/button                      /div

 

 

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

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