【发布时间】:2015-08-16 06:24:05
【问题描述】:
我有以下文件布局:
/website/index.html
/website/font-awesome/css
/website/font-awesome/fonts
/website/Subdirectory/page1.html
页面/website/index.html 完全没有使用Font Awesome; /website/Subdirectory/ 中的文件确实使用它。
如果我直接访问/website/Subdirectory/page1.html,Font Awesome 图标会显示为一个带有 UniCode 编号的框。如果我先访问/website/index.html,那么访问子目录中的任何页面都会按预期显示图标。
在page1.html 我有<link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css">。
这是本地托管的;即通过file://
更新
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:2): status=2147500037
source: file:///correct/path/to/website/font-awesome/fonts/fontawesome-webfont.ttf?v=4.2.0
我在 Mac 上使用 Firefox。根据 Finder,字体版本是 4.2.0。
在 Chrome 上不存在这个问题。看起来像是某种浏览器实现问题。解决方法表示赞赏。
【问题讨论】:
标签: css font-awesome