因為目前公司主要使用的CSS Framework為Bootstrap

本身有內建了一組字型是用來顯示Icon用的

Bootstrap 

不過其實裡面的icon不多

後來有發現另一組也是很多人使用的

font awesome

使用起來都很簡單

先將檔案下載後放定位後

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

接下來只要

<i class="fa fa-500px"></i>

替換後面的fa-XXX就可以使用了。

arrow
arrow
    文章標籤
    icon font web css
    全站熱搜

    Matt 發表在 痞客邦 留言(0) 人氣()