Fontawesome不加载 [英] Fontawesome not loading

查看:691
本文介绍了Fontawesome不加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用Fotawesome一个项目。问题是,当我打开网页,我只看到块而不是图标。字体'不能在服务器上找到',但我敢肯定,他们是在正确的位置(我可以浏览到该文件自己)。当我打开网页与本地主机,一切工作正常。 Fontawesome没有安装在我的电脑上。难道说是有事做的MIME类型?我该如何解决这个问题? (我使用的是Apache服务器)

I'm currently using Fotawesome at a project. The problem is, that when I load the webpage, I only see blocks instead of icons. The fonts 'can't be found on the server', but I'm sure they are at the right location (I can browse to the files myself). When I load the webpage with localhost, everything works fine. Fontawesome is NOT installed on my computer. Could it be that is has something to do with mimetypes? How do I fix this? (I'm using an apache server)

推荐答案

记住路径为字体真棒相对于那里的CSS是存储(如果你使用相对路径)。

Keep in mind the path to Font Awesome is relative to where the CSS is stored (if you're using relative paths).

此外,如果它是一个选项,引导CDN使得它很容易使用字体真棒:
http://www.bootstrapcdn.com/?v=01042013155511#tab_fontawesome

Also, if it's an option, Bootstrap CDN makes it really easy to use Font Awesome: http://www.bootstrapcdn.com/?v=01042013155511#tab_fontawesome

这篇关于Fontawesome不加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆