Web Icon(图标) - 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 Currency 图标的使用和结果。用表中给出的代码替换上述程序的 < body > 标签以获得相应的输出 -
    用法 结果
    <i class="fa fa-bitcoin custom"></i>  
    <i class="fa fa-btc custom"></i>  
    <i class="fa fa-cny custom"></i>  
    <i class="fa fa-dollar custom"></i>  
    <i class="fa fa-eur custom"></i>  
    <i class="fa fa-euro custom"></i>  
    <i class="fa fa-gbp custom"></i>  
    <i class="fa fa-gg custom"></i>  
    <i class="fa fa-gg-circle custom"></i>  
    <i class="fa fa-ils custom"></i>  
    <i class="fa fa-inr custom"></i>  
    <i class="fa fa-jpy custom"></i>  
    <i class="fa fa-krw custom"></i>  
    <i class="fa fa-money custom"></i>  
    <i class="fa fa-rmb custom"></i>  
    <i class="fa fa-rouble custom"></i>  
    <i class="fa fa-rub custom"></i>  
    <i class="fa fa-ruble custom"></i>  
    <i class="fa fa-rupee custom"></i>  
    <i class="fa fa-shekel custom"></i>  
    <i class="fa fa-sheqel custom"></i>  
    <i class="fa fa-try custom"></i>  
    <i class="fa fa-turkish-lira custom"></i>  
    <i class="fa fa-usd custom"></i>  
    <i class="fa fa-won custom"></i>  
    <i class="fa fa-yen custom"></i>