字体很棒的图标不适用于 bootstrap
Font awesome icons not working with bootstrap
我将 CDN 添加到我的代码中:
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
但是当我尝试添加带有超赞字体图标的按钮时,它显示空白 space:
<div class="container">
<a class="btn" href="#">
<i class="fa fa-twitter"></i>
</a>
</div>
将 http:
添加到 href,使其看起来像这样:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
编辑:如果您的页面使用 HTTPS,link 使用 HTTPS 到超棒的字体 CSS(将 http://
替换为 [=上面 link 中的 13=]。
我将 CDN 添加到我的代码中:
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
但是当我尝试添加带有超赞字体图标的按钮时,它显示空白 space:
<div class="container">
<a class="btn" href="#">
<i class="fa fa-twitter"></i>
</a>
</div>
将 http:
添加到 href,使其看起来像这样:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
编辑:如果您的页面使用 HTTPS,link 使用 HTTPS 到超棒的字体 CSS(将 http://
替换为 [=上面 link 中的 13=]。