为什么我无法在我的网站上看到图标?

时间:2015-11-04 11:20:19

标签: css

我正在使用以下代码



@font-face {
    font-family: 'icomoon';
    src:url('/../fonts/icomoon.eot') format('embedded-opentype'),
        url('/../fonts/icomoon.ttf') format('truetype'),
        url('/../fonts/icomoon.woff') format('woff'),
        url('/../fonts/icomoon.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}




1 个答案:

答案 0 :(得分:0)

如果我使用此代码

@font-face {
    font-family: 'icomoon';
    src:url('icon-fonts/icomoon.html');
    src:url('icon-fonts/icomoond41d.html?#iefix') format('embedded-opentype'),
        url('icon-fonts/icomoon-2.html') format('truetype'),
        url('icon-fonts/icomoon-3.html') format('woff'),
        url('icon-fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

错误显示在托管服务器中并在本地系统中正常运行

enter image description here

相关问题