Web Icon - Material - 切换图标

  • 简述

    本章介绍了 Google 的(材料)切换图标的用法。假设custom是我们定义大小和颜色的 CSS 类名,如下例所示。
    
    <!DOCTYPE html>
    <html>
       <head>
          <link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel =  "stylesheet">
              
          <style>
             i.custom {font-size: 2em; color: green;}
          </style>
              
       </head>
         
       <body>
          <i class = "material-icons custom">accessibility</i>
       </body>
         
    </html>
    
    下表包含 Google 的(材料)切换图标的使用情况和结果。用表中给出的代码替换上述程序的 < body > 标签以获得相应的输出 -
    Usage Result
    <i class="material-icons custom">check_box</i> check_box
    <i class="material-icons custom">check_box_outline_blank</i> check_box_outline_blank
    <i class="material-icons custom">indeterminate_check_box</i> indeterminate_check_box
    <i class="material-icons custom">radio_button_checked</i> radio_button_checked
    <i class="material-icons custom">radio_button_unchecked</i> radio_button_unchecked
    <i class="material-icons custom">star</i> star
    <i class="material-icons custom">star_border</i> star_border
    <i class="material-icons custom">star_half</i> star_half