element.ui 自定义样式问题

方法有很多种

自定义类名

 <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;
    }
}                              

猜你喜欢

转载自www.cnblogs.com/xiaoliziaaa/p/13202644.html
今日推荐