【问题标题】:Fontawesome Icons are not showing with bootstrap classes引导类不显示 Fontawesome 图标
【发布时间】:2015-01-17 15:40:47
【问题描述】:

我正在尝试将Fontawesome 图标与boostrap 一起使用。我想在 jumbotron 的末尾显示一些图标。但他们没有出现。

这是我正在使用的代码:

<div class="jumbotron">
        <h1>Muhammad Arslan Aslam</h1>
        <h4>Front-End Web Designer, and Junior Blogger. <a class="btn btn-info btn-xs" herf="about.html">Know More</a></h4>
        Join Me:
        <a href="http://facebook.com"><i class="fa fa-facebook-square-2x">&nbsp;</i></a>
    </div>

我已经使用 CDN 集成了 fontawesome。

【问题讨论】:

    标签: twitter-bootstrap icons font-awesome


    【解决方案1】:

    这是一个演示:http://jsfiddle.net/0qftoLp7/1/

    不是facebook-square-2x,而是facebook-square fa-2x

    HTML

    <div class="jumbotron">
            <h1>Muhammad Arslan Aslam</h1>
            <h4>Front-End Web Designer, and Junior Blogger. <a class="btn btn-info btn-xs" herf="about.html">Know More</a></h4>
            Join Me:
            <a href="http://facebook.com"><i class="fa fa-facebook-square fa-2x"></i></a>
        </div>
    

    【讨论】:

    • 非常感谢@adib-behjat,它对我来说效果很好:)
    猜你喜欢
    • 2017-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多