ZH彪关注
0.1022020.07.10 00:22:37字数 54阅读 1,552
一、下载字体图标
image.png
二、将下载的字体图标放到项目中
image.png
三、在main.js中引入
image.png
四、在css中的使用
&::after {
content: '\e601';
font-family: 'iconfont' !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
content中写的内容就是:\ + &#x后面的e601
image.png
必须加上这段代码才生效
image.png