.gengin{ width: 90px; height: 30px; background-color: #23A6D5; border: none; outline: none; color: #ffffff; font-size: 18px; font-weight: bold; padding: 5px 8px; margin: 0px auto; cursor: pointer; } .gengin:hover{ background-color: #23D5AB; } 居中显示
<div class="gengin">按钮</div>