Bootstrap Glyphicons不会在node-webkit中加载

时间:2014-08-22 12:15:04

标签: twitter-bootstrap node-webkit

我正在使用node-webkit v0.10.2。

当我尝试在Bootstrap按钮中使用一个时,我会在检查器中看到它:

Failed to load resource file:///blahblah/lib/fonts/glyphicons-halflings-regular.woff

Failed to load resource file:///blahblah/lib/fonts/glyphicons-halflings-regular.ttf

Failed to load resource file:///blahblah/lib/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular

我像往常一样在我的HTML中包含了Bootstrap CSS。其余的CSS似乎正常工作。

1 个答案:

答案 0 :(得分:0)

你能告诉我一些代码吗?此外,如果您尝试加载像CDN这样的东西://path/to/domain/file.js将无效。 Node-webkit将文件作为系统文件加载。要使用cdn,您必须使用http://或https://

作为前缀