form表单里的button 等元素不能使用margin: 0 auto;

记得把form和button都设为display:block;

就能用margin: 0 auto;水平居中了

原文地址:https://www.cnblogs.com/sphjy/p/11305899.html