我无法显示我的图标字体。这是我的目录结构:
_文件夹包含_文件夹之外的css和字体文件夹我有demo1.html页面
这是我用于设置字体的代码:
@font-face {
font-family: 'icomoon';
src:url('_/fonts/icomoon.eot?-9hqo51');
src:url('_/fonts/icomoon.eot?#iefix-9hqo51') format('embedded-opentype'),
url('_/fonts/icomoon.woff?-9hqo51') format('woff'),
url('_/fonts/icomoon.ttf?-9hqo51') format('truetype'),
url('_/fonts/icomoon.svg?-9hqo51#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
html代码如下:
<span aria-hidden="true" class="icon-raja_head"></span>
这是我设置的示例页面。字体代码在我的样式表的第 903 行。
谢谢-Sohail