【问题标题】:Bootstrap Glyphicons do not load in node-webkitBootstrap Glyphicons 不会在 node-webkit 中加载
【发布时间】:2014-08-22 12:15:04
【问题描述】:

我正在使用 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 似乎工作正常。

【问题讨论】:

    标签: twitter-bootstrap node-webkit


    【解决方案1】:

    你能给我看一点代码吗?此外,如果您尝试加载 CDN 之类的内容://path/to/domain/file.js 将不起作用。 Node-webkit 将文件加载为系统文件。要使用 cdn,您必须以 http:// 或 https://

    为前缀

    【讨论】:

    • 我有一个 Bootstrap .js 和 .css 的下载副本,我将其包含在 HTML 页面中。两者都工作正常。 CSS 包括 Glyphicons,不是吗?
    猜你喜欢
    • 1970-01-01
    • 2017-08-23
    • 1970-01-01
    • 2016-05-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-07
    • 2015-07-02
    相关资源
    最近更新 更多