【问题标题】:How we can use FONT AWESOME by css我们如何通过 css 使用 FONT AWESOME
【发布时间】:2017-05-24 02:04:10
【问题描述】:

如何在 css 中使用 font-awesome?我搜索了一下,发现我只需要下载 font-awesome 目录并将其复制到我的项目中,然后使用 css 中的内容显示图标。


【问题讨论】:

标签: html css fonts


【解决方案1】:

来自文档:

Using CSS

Copy the entire font-awesome directory into your project.
In the <head> of your html, reference the location to your font-awesome.min.css.

<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

然后在页面的代码中插入这样的图标:

<i class="fa fa-camera-retro fa-2x"></i>

有关更多示例,请参阅here。在这里你会找到所有icons的名字。

【讨论】:

    【解决方案2】:

    http://fontawesome.io/get-started/

    使用 CSS

    Copy the entire font-awesome directory into your project.
    In the <head> of your html, reference the location to your font-awesome.min.css.
    

    <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
    

    【讨论】:

      猜你喜欢
      • 2016-07-25
      • 1970-01-01
      • 2015-04-30
      • 1970-01-01
      • 1970-01-01
      • 2021-05-23
      • 1970-01-01
      • 2013-01-22
      • 2021-10-07
      相关资源
      最近更新 更多