Font Awesome - 性別圖示



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

<html>
   <head>
      <link rel = "stylesheet" href = "http://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-genderless custom"></i>
<i class="fa fa-intersex custom"></i>
<i class="fa fa-mars custom"></i>
<i class="fa fa-mars-double custom"></i>
<i class="fa fa-mars-stroke custom"></i>
<i class="fa fa-mars-stroke-h custom"></i>
<i class="fa fa-mars-stroke-v custom"></i>
<i class="fa fa-mercury custom"></i>
<i class="fa fa-neuter custom"></i>
<i class="fa fa-transgender custom"></i>
<i class="fa fa-transgender-alt custom"></i>
<i class="fa fa-venus custom"></i>
<i class="fa fa-venus-double custom"></i>
<i class="fa fa-venus-mars custom"></i>
廣告

© . All rights reserved.