【发布时间】:2013-05-06 00:04:09
【问题描述】:
为什么 font-awesome 在 localhost 上有效,但在 web 上无效?
请帮忙!!
@font-face {
font-family: 'FontAwesome';
src: url('font/fontawesome-webfont.eot@v=3.0.1');
src: url('font/fontawesome-webfont.eot@#iefix&v=3.0.1') format('embedded-opentype'),
url('font/fontawesome-webfont.woff@v=3.0.1') format('woff'),
url('font/fontawesome-webfont.ttf@v=3.0.1') format('truetype');
font-weight: normal;
font-style: normal;
}
【问题讨论】:
-
你检查文件名的大小写,Linux是区分大小写的。
-
是的,我查过了。我正在使用 Windows 服务器
-
你确定你已经上传了很棒的字体文件吗?
-
我很确定
标签: internet-explorer google-chrome firefox fonts font-awesome