fontawesome 5一些图标无法渲染

时间:2018-04-05 10:18:59

标签: html font-awesome

字体真棒版本5的问题。某些图标未呈现。而是显示带有问号和感叹号的动画。如果我使用版本4和css它会被渲染。有人有这个问题吗?

<!DOCTYPE html>
<html>
<head>
  <script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
</head>
<body class="body">

<i class="fa fa-google-plus-square"></i>
<i class="fas fa-google-plus-square"></i>
<i class="fas fa-check-square"></i>

</body>

</html>

此处google-plus-square图标未呈现。这就是它在浏览器中的显示方式 enter image description here

2 个答案:

答案 0 :(得分:3)

Because you are calling wrong class

**This Is Wrong**
<i class="fa fa-google-plus-square"></i>
<i class="fas fa-google-plus-square"></i>

**For Font Awesome 5 Instead of That USe THis**
<i class="fab fa-google-plus-square"></i>

从此处搜索图标 https://fontawesome.com/icons?d=gallery

答案 1 :(得分:0)

File Header

使用此链接代替脚本