地址: https://www.zhangxinxu.com/sp/icon/css.php
使用:
<css-icon class="icon-plus"></css-icon>
css-icon {
display: inline-block;
height: 1em;
width: 1em;
font-size: 20px;
box-sizing: border-box;
text-indent: -9999px;
vertical-align: middle;
position: relative;
margin-top: 9px;
margin-bottom: 8px;
}
css-icon::before,
css-icon::after {
content: '';
box-sizing: inherit;
position: absolute;
left: 50%;
top: 45%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.icon-plus::before {
width: 60%;
border-top: 2px solid;
}
.icon-plus::after {
height: 60%;
border-left: 2px solid;
}