资料 - 文件图标



本章解释了 Google 的 (Material) 文件图标的使用方法。假设 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 的 (Material) 文件图标的使用方法和结果。将上面程序的 < body > 标记替换成表中给出的代码,即可获得相应的输出结果 -

用法 结果
<i class="material-icons custom">attachment</i> attachment
<i class="material-icons custom">cloud</i> cloud
<i class="material-icons custom">cloud_circle</i> cloud_circle
<i class="material-icons custom">cloud_done</i> cloud_done
<i class="material-icons custom">cloud_download</i> cloud_download
<i class="material-icons custom">cloud_off</i> cloud_off
<i class="material-icons custom">cloud_queue</i> cloud_queue
<i class="material-icons custom">cloud_upload</i> cloud_upload
<i class="material-icons custom">file_download</i> file_download
<i class="material-icons custom">file_upload</i> file_upload
<i class="material-icons custom">folder</i> folder
<i class="material-icons custom">folder_open</i> folder_open
<i class="material-icons custom">folder_shared</i> folder_shared
广告