待使用图标:
https://p3.itc.cn/images01/20230919/91c499baeacb47e0af215305b122820f.jpeg
样式代码:
.el-icon-custom {
display: inline-block;
width: 13px;
height: 13px;
background: url("https://p3.itc.cn/images01/20230919/91c499baeacb47e0af215305b122820f.jpeg") center no-repeat;
background-size: contain;
margin-right: 1px;
align-items: center;
vertical-align: middle;
margin-top:-3px;
}
按钮定义代码:
<el-button size="small" type="primary" plain>
<i class="el-icon-custom"></i>
自定义按钮</el-button>