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-angle-double-down custom" ></i>
<i class="fa fa-angle-double-left custom" ></i>
<i class="fa fa-angle-double-right custom" ></i>
<i class="fa fa-angle-double-up custom" ></i>
<i class="fa fa-angle-down custom" ></i>
<i class="fa fa-angle-left custom" ></i>
<i class="fa fa-angle-right custom" ></i>
<i class="fa fa-angle-up custom" ></i>
<i class="fa fa-arrow-circle-down custom" ></i>
<i class="fa fa-arrow-circle-left custom" ></i>
<i class="fa fa-arrow-circle-right custom" ></i>
<i class="fa fa-arrow-circle-up custom" ></i>
<i class="fa fa-arrow-circle-o-down custom" ></i>
<i class="fa fa-arrow-circle-o-left custom" ></i>
<i class="fa fa-arrow-circle-o-right custom" ></i>
<i class="fa fa-arrow-circle-o-up custom" ></i>
<i class="fa fa-arrow-down custom" ></i>
<i class="fa fa-arrow-left custom" ></i>
<i class="fa fa-arrow-right custom" ></i>
<i class="fa fa-arrow-up custom" ></i>
<i class="fa fa-arrows custom" ></i>
<i class="fa fa-arrows-alt custom" ></i>
<i class="fa fa-arrows-h custom" ></i>
<i class="fa fa-arrows-v custom" ></i>
<i class="fa fa-caret-down custom" ></i>
<i class="fa fa-caret-left custom" ></i>
<i class="fa fa-caret-right custom" ></i>
<i class="fa fa-caret-up custom" ></i>
<i class="fa fa-caret-square-o-down custom" ></i>
<i class="fa fa-caret-square-o-left custom" ></i>
<i class="fa fa-caret-square-o-right custom" ></i>
<i class="fa fa-caret-square-o-up custom" ></i>
<i class="fa fa-chevron-circle-down custom" ></i>
<i class="fa fa-chevron-circle-left custom" ></i>
<i class="fa fa-chevron-circle-right custom" ></i>
<i class="fa fa-chevron-circle-up custom" ></i>
<i class="fa fa-chevron-down custom" ></i>
<i class="fa fa-chevron-left custom" ></i>
<i class="fa fa-chevron-right custom" ></i>
<i class="fa fa-chevron-up custom" ></i>
<i class="fa fa-hand-o-down custom" ></i>
<i class="fa fa-hand-o-left custom" ></i>
<i class="fa fa-hand-o-right custom" ></i>
<i class="fa fa-hand-o-up custom" ></i>
<i class="fa fa-long-arrow-down custom" ></i>
<i class="fa fa-long-arrow-left custom" ></i>
<i class="fa fa-long-arrow-right custom" ></i>
<i class="fa fa-long-arrow-up custom" ></i>
<i class="fa fa-toggle-down custom" ></i>
<i class="fa fa-toggle-left custom" ></i>
<i class="fa fa-toggle-right custom" ></i>
<i class="fa fa-toggle-up custom" ></i>
<i class="fa fa-exchange custom" ></i>
广告