Font Awesome圖表圖示



本章解釋了Font Awesome圖表圖示的使用方法。假設custom是我們在下面示例中定義大小和顏色的CSS類名。

<html>
   <head>
      <link rel="stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">

      <style>
         i.custom {font-size: 2em; color: gray;}
      </style>
		
   </head>
	
   <body>
      <i class = "fa fa-adjust custom"></i>
   </body>
	
</html>

下表顯示了Font Awesome圖表圖示的使用和結果。將上面程式的<body>標籤替換成表中給出的程式碼,即可得到相應的結果:

使用方法 結果
<i class="fa fa-area-chart custom"></i>
<i class="fa fa-bar-chart custom"></i>
<i class="fa fa-bar-chart-o custom"></i>
<i class="fa fa-line-chart custom"></i>
<i class="fa fa-pie-chart custom"></i>
廣告