【问题标题】:Font Awesome Icon in 127.0.0.1 vs localhost through Wordpress通过 Wordpress 在 127.0.0.1 与 localhost 中的 Font Awesome Icon
【发布时间】:2017-09-08 04:42:57
【问题描述】:

使用 localhost 在 span 标签中的字体真棒图标看起来像这样 localhost in addressbar

虽然字体很棒的图标在 127.0.0.1 中看起来像这样 127.0.0.1 in addressbar

请注意,这些网站是用 html 和 css 原生创建的,并成功转移到 xampp 中的 wordpress 主题。

我的问题是为什么字体真棒图标和 wordpress 仪表板不会显示在 localhost 中但显示在 127.0.0.1 中

【问题讨论】:

    标签: html css wordpress localhost font-awesome


    【解决方案1】:

    我想你一定错过了通过 header.php 中的链接标签调用 font-awesome。

    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    

    否则它对我来说很好,正如你在快照中看到的那样

    【讨论】:

    • wordpress 在 functions.php 中有这个 wp_enqueque 函数。我把所有的boostrap css都放在那里并且fontawesome。还是一头雾水。为什么它与 localhost 和 127.0.0.1 不同
    猜你喜欢
    • 2021-12-02
    • 2017-07-17
    • 1970-01-01
    • 2019-04-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多