Fontawesome not loading [closed]

主宰稳场 提交于 2019-12-07 05:23:31

问题


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)


回答1:


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

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



来源:https://stackoverflow.com/questions/14527734/fontawesome-not-loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!