0%

font-icon

将图标转为字体格式

icomoon

将图标封装到css伪类

1
2
3
4
5
6
7
8
9
10
11
12
13
14
.icon.icon-add{
position: relative;
padding-left: 22px;
margin-left: 4px;
&::before{
content: '';
position: absolute;
left: 0px;
bottom: calc(50% - 10px);
background: url(./assets/image/icon_add.svg) no-repeat top left;
width: 18px;
height: 18px;
}
}