方法一 button{width:100%;height:100%} button div{margin:0 auto} <button> <div></div> </button> 方法二 绝对定位居中法