方法有很多种
自定义类名
<el-button class="search_button" @click="search">查询</el-button> .search_button { color: #ffffff; background: #15ac86; border: none; border-radius: 3px; &:hover, &:active, &:focus { color: #ffffff; background: #15ac86; border: none; border-radius: 3px; } }