字体真棒图标没有显示

时间:2015-08-01 14:24:31

标签: html css font-awesome

我无法显示Font Awesome图标。我尝试过不同的CDN,但在任何浏览器上都没有。

CSS链接:

<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/theme.min.css">
<link rel="stylesheet" href="assets/css/color-defaults.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-white.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-blue.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-gray.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-black.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-white-black.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-white-green.min.css" media="screen">
<link rel="stylesheet" href="assets/css/swatch-white-red.min.css" media="screen">
<link rel="stylesheet" href="assets/css/fonts.min.css" media="screen">        
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/primary.css" media="screen">

Font Awesome HTML:

<div class="col-md-4">
   <h1 class="h2">Follow</h1>
   <hr />
   <i class="fa facebook-official fa-lg"></i>
   <i class="fa google-plus-square fa-lg"></i>
   <i class="fa twitter-square fa-lg"></i>
   <i class="fa instagram fa-lg"></i>
</div>

2 个答案:

答案 0 :(得分:2)

我认为你的课程错了。试试这个:

<div class="col-md-4">
    <h1 class="h2">Follow</h1>
    <hr />
    <i class="fa fa-facebook-official fa-lg"></i>
    <i class="fa fa-google-plus-square fa-lg"></i>
    <i class="fa fa-twitter-square fa-lg"></i>
    <i class="fa fa-instagram fa-lg"></i>
</div>

您需要在每个徽标前添加fa-

答案 1 :(得分:0)

以下是您始终可以获得文档的示例。

http://fortawesome.github.io/Font-Awesome/icon/archive/