【问题标题】:Polymer core-icons does not render in FireFox聚合物核心图标不会在 FireFox 中呈现
【发布时间】:2015-02-28 09:44:13
【问题描述】:

我正在使用与 bower 一起安装的 Ploymer 图标 0.5.5。这些图标在 Chrome 中运行良好,但在 Firefox 中隐藏。 Example Code

如何解决这个问题?

【问题讨论】:

    标签: html css icons polymer material-design


    【解决方案1】:

    我刚刚注意到您的代码中没有包含 Web 组件的 polyfill,这很可能是问题所在。没有其他浏览器支持像 Chrome 这样的 Web 组件,因此您必须像这样在 index.html 中包含 polyfill:

    <script src="[Polymer-elements-folder]/webcomponentsjs/webcomponents.js"><script>
    

    【讨论】:

    • 页面第一次刷新时显示,然后立即消失。我的 index.html 文件中引用了 js
    猜你喜欢
    • 2014-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-16
    • 1970-01-01
    相关资源
    最近更新 更多