1. 程式人生 > >使用google api material icons在網頁中插入圖標

使用google api material icons在網頁中插入圖標

target bsp 一個 ria blank icon ons api google

在<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在網頁中插入圖標