材质-切换图标 


材质-切换图标


本章介绍了Google(材料)切换图标的用法。假设custom是我们定义大小和颜色的CSS类名称,如下面的示例所示。

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        
      <style>
         i.custom {font-size: 2em; color: green;}
      </style>
        
   
    
   
      <i class="material-icons custom">accessibility</i>
   
    

下表包含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
0



error: 内容受到保护 !!