css 通过 content 属性指定图标字体:
.mif-chart-bars2:before {
content: "\e99d";
}
意思是,在 mif-chart-bars2 节点中的首位置,插入一个图标(通过 Unicode 编码索引)。在 css 文件中,可指定使用的字体文件:
@font-face {
font-family: 'metro';
src: url('../fonts/metro.eot?izvoei');
src: url('../fonts/metro.eot?#iefixizvoei') format('embedded-opentype'), url('../fonts/metro.woff?izvoei') format('woff'), url('../fonts/metro.ttf?izvoei') format('truetype'), url('../fonts/metro.svg?izvoei#metro') format('svg');
font-weight: normal;
font-style: normal;
}
参考文献