我使用了很棒的字体5.7.2,但是由于某些原因,并非所有图标都正确显示。在下面的示例中,仅邮件
<i class="fa fa-envelope"></i>
出现。 facebook,twitter和googleplus仅显示为小方块。
<a href="{{ settings.SITE_SOCIAL_FACEBOOK }}{{ settings.SITE_TLD }}{{ request.get_full_path|urlencode }}" class ="socialmediabutton-post-details"><i class="fa fa-facebook"></i></a>
<a href="{{ settings.SITE_SOCIAL_TWITTER }}{{ settings.SITE_TLD }}{{ request.get_full_path|urlencode }}" class="socialmediabutton-post-details"><i class="fa fa-twitter"></i></a>
<a href="{{ settings.SITE_SOCIAL_GOOGLEPLUS }}{{ settings.SITE_TLD }}{{ request.get_full_path|urlencode }}" class="socialmediabutton-post-details"><i class="fa fa-google"></i></a>
<a href="mailto:?subject=Check this Post: {{ post.title }} - At: {{ settings.SITE_NAME }}&body={{ settings.SITE_TLD }}{{ request.get_full_path|urlencode }} " class = "socialmediabutton-post-details"><i class="fa fa-envelope"></i></a>
这是我将fontawesome添加到我的网站的方式:
<link rel="stylesheet" href="{% static 'css/font-awesome/5.7.2/all.css' %}">
答案 0 :(得分:0)
您正在使用fontawesome 4.7版本类。尝试5.7
<i class="far fa-envelope" aria-hidden="true"></i>