网址
IcoMoon App - Icon Font, SVG, PDF & PNG Generator
文件夹结构
复制style.css文件部分代码到目标html<style>中
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?d65i1h');
src: url('fonts/icomoon.eot?d65i1h#iefix') format('embedded-opentype'), url('fonts/icomoon.ttf?d65i1h') format('truetype'), url('fonts/icomoon.woff?d65i1h') format('woff'), url('fonts/icomoon.svg?d65i1h#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
引用
复制demo.html图标粘贴到目标span
<span></span>
span {
font-family: "icomoon";
}