2017-01-09 48 views
-6

如何在CSS中使用font-awesome?我搜索並看到我只需要下載並將font-awesome目錄複製到我的項目中,然後使用css中的內容顯示圖標。我們如何使用FONT AWESOME by css


+0

字體真棒CDN是在您的項目上獲得Font Awesome的最簡單方法[http://fontawesome.io/get-started/] –

回答

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