【发布时间】:2015-05-09 00:50:18
【问题描述】:
我正在尝试在 Bootstrap 中使用 Glyphicons,但出现此错误:
> http://address/fonts/glyphicons-halflings-regular.woff2
> http://address/fonts/glyphicons-halflings-regular.woff GET
> http://address/fonts/glyphicons-halflings-regular.ttf 404 (Not Found)
我不知道该怎么做,我已经尝试了 StackOverflow 上提出的所有解决方案。
【问题讨论】:
-
您确定已下载并复制到正确的目录吗?
-
是的,我确定。在 www/fonts/ 文件夹中。而boostrap.css文件中的url就是商品:“../fonts/glyphicons-halflings-regular.ttf”
-
css文件的引用路径是否正确?
-
如果您下载了 bootstrap.zip 并且没有将其复制到相同结构的文件夹中 - css 文件将像在相同的文件夹结构中一样查找它。 (我的猜测是错误是css文件在寻找字体并且由于文件夹结构不同而无法找到它们)
-
结构一模一样...
标签: css twitter-bootstrap fonts glyphicons