<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
@font-face {
font-family: "icomoon";
src:url('fonts/icomoon.eot');
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.svg#icomoon') format('svg'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
span:before{
font-family:icomoon;/*这里有问题*/
font-size: 30px;
-webkit-font-smoothing: antialiased;
content: "\e905";
color: violet;
}
</style>
</head>
<body>
<div>
<span></span>hahaha
</div>
</body>
</h

https://segmentfault.com/q/10...
已找到答案