【问题标题】:Font awesome with the class: fas fa-user gives pack a rectangle instead of a plus sign (+)类的字体很棒:fas fa-user 给包一个矩形而不是加号 (+)
【发布时间】:2018-10-15 13:42:13
【问题描述】:

根据本页:https://fontawesome.com/icons/plus?style=solid

<i class="fas fa-plus"></i>

应该加号(+)

并根据此页面:https://fontawesome.com/icons/user?style=solid

<i class="fas fa-user"></i>

应该给用户签名

相反,它们都返回一个矩形。这是怎么回事?

【问题讨论】:

    标签: html css extjs font-awesome sencha-architect


    【解决方案1】:

    工作正常。也许你错误地包含了 fontawesome css 文件。

    <link href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" rel="stylesheet"/>
    <i class="fas fa-plus"></i>
    <i class="fas fa-user"></i>

    【讨论】:

    • 感谢您的回复,原来我只需要用 fa 替换 fas。我不知道为什么,但对我有用!
    • @gerbenschipper 您可能正在使用 fontawesome 版本 4
    【解决方案2】:

    在浏览器中加载的 css 中查找 fas。你应该看到差异

    【讨论】:

    • 我实际上并没有在我的浏览器中打开它。我正在观看 Sencha-architect 3.5.1 版
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-05
    • 2018-02-12
    • 2018-02-06
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    相关资源
    最近更新 更多