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">cake</i> cake
    <i class="material-icons custom">domain</i> domain
    <i class="material-icons custom">group</i> group
    <i class="material-icons custom">group_add</i> group_add
    <i class="material-icons custom">location_city</i> location_city
    <i class="material-icons custom">mood</i> mood
    <i class="material-icons custom">mood_bad</i> mood_bad
    <i class="material-icons custom">notifications</i> notifications
    <i class="material-icons custom">notifications_active</i> notifications_active
    <i class="material-icons custom">notifications_none</i> notifications_none
    <i class="material-icons custom">notifications_off</i> notifications_off
    <i class="material-icons custom">notifications_paused</i> notifications_paused
    <i class="material-icons custom">pages</i> pages
    <i class="material-icons custom">party_mode</i> party_mode
    <i class="material-icons custom">people</i> people
    <i class="material-icons custom">people_outline</i> people_outline
    <i class="material-icons custom">person</i> person
    <i class="material-icons custom">person_add</i> person_add
    <i class="material-icons custom">person_outline</i> person_outline
    <i class="material-icons custom">plus_one</i> plus_one
    <i class="material-icons custom">poll</i> poll
    <i class="material-icons custom">public</i> public
    <i class="material-icons custom">school</i> school
    <i class="material-icons custom">share</i> share
    <i class="material-icons custom">whatshot</i> whatshot