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