1.找到要使用图标的Unicode字符
2.代码中添加
.el-form-item__error:before {
content: '\f06a';
font-family: FontAwesome; //FontAwesome图标
}
&::after {
content: '\e60b';
font-family: "iconfont"; //iconfont 图标
position: absolute;
font-size: 16px;
width: 34px;
height: 34px;
color: #fff;
right: -5%;
top: 5%;
}
所有评论(0)