react 項目中引入iconfont

1.將選擇好的圖標放到項目中,而後選擇下載css

 

2.在項目的public文件中建立iconfont文件夾,將下載好的內容複製進去html

3.在項目中的public文件中的html中引入htm

<link rel="stylesheet" href="./iconfont/iconfont.css">

4.在其餘js文件使用便可blog

<i className="iconfont">&#xe627;</i>

 

5.最終的class

相關文章
相關標籤/搜索