【发布时间】:2018-07-10 20:57:48
【问题描述】:
正如你在我的小提琴中看到的,一些来自 font awesome 的图标不起作用。为什么?
https://jsfiddle.net/aq9Laaew/80841/
<div class="col-md-1 d-flex flex-column justify-content-center align-items-center">
<i class="fa fa-searchengin"></i>
<span>SEO</span>
</div>
<div class="col-md-1 d-flex flex-column justify-content-center align-items-center">
<i class="fa fa-facebook-square"></i>
<span>Social</span>
</div>
【问题讨论】:
-
因为你的类名没有与字体类链接
-
因为你有错别字。没有像
fa-searchengin这样的图标。您必须从该列表中指定现有图标:fontawesome.com/v4.7.0/icons(来自我假设您使用的是 v4 的类名)。并确保包含最新的 CSS。 -
我使用的是 5.1,因为我需要更多图标。 fontawesome.com/icons?d=gallery&q=searchengin
-
哦,我明白了,但是您在元素上使用 v4 类。
-
别人做的,请看下面的答案。
标签: css fonts font-awesome