我们如何使用CSS的FONT AWESOME

时间:2017-01-09 18:16:30

标签: html css fonts

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

2 个答案:

答案 0 :(得分:0)

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">

答案 1 :(得分:0)

来自文档:

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的名称。