码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-12-05 17:44:48      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:mat   type   lan   ica   https   text   font   target   一个   

在<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 color-red vertical-top">subject</i>
</span>

 

 

就可以插入一个红色的地图的图标。

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

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

标签:mat   type   lan   ica   https   text   font   target   一个   

原文地址:http://www.cnblogs.com/lstory/p/7987977.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!