使用google api material icons在网页中插入图标

在<head></head>中加入这一句:

<link rel='stylesheet' href='http://fonts.googleapis.com/icon?family=Material+Icons' type='text/css'>

然后在body中加入:

<span class="sidenav-link-icon">
<i class="material-icons">videocam</i>
</span>

就可以插入一个摄像头的图标。

其他图标可以从这个网页中找:https://material.io/icons/

posted @ 2017-04-24 09:35  lvmememe  阅读(2014)  评论(0编辑  收藏  举报