首页 > Windows开发 > 详细

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

时间:2017-12-05 17:30:06      阅读:243      评论:0      收藏:0      [点我收藏+]

在<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在网页中插入图标

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!