Icon Font แบบ Material Icons สวยๆ แถมฟรีด้วย จาก Google
1 |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<style> /* Rules for sizing the icon. */ .material-icons.md-18 { font-size: 18px; } .material-icons.md-24 { font-size: 24px; } .material-icons.md-36 { font-size: 36px; } .material-icons.md-48 { font-size: 48px; } .material-icons.md-78 { font-size: 78px; } /* Rules for using icons as black on a light background. */ .material-icons.md-dark { color: rgba(0, 0, 0, 0.54); } .material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); } /* Rules for using icons as white on a dark background. */ .material-icons.md-light { color: rgba(255, 255, 255, 1); } .material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); } .material-icons.orange600 { color: #FB8C00; } </style> |
1 2 3 4 5 6 7 8 9 10 11 |
<i class="material-icons md-36">face</i> <i class="material-icons md-48">face</i> <i class="material-icons md-78">face</i> <i class="material-icons md-dark">face</i> <i class="material-icons md-dark md-inactive">face</i> <i class="material-icons md-light">face</i> <i class="material-icons md-light md-inactive">face</i> <i class="material-icons orange600">face</i> |
ดูวิธีใช้งานเพิ่มเติม http://google.github.io/material-design-icons/#icon-font-for-the-web
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<html lang="en"> <head> <meta charset="utf-8"> <title>Icon Font from Google</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <style> /* Rules for sizing the icon. */ .material-icons.md-18 { font-size: 18px; } .material-icons.md-24 { font-size: 24px; } .material-icons.md-36 { font-size: 36px; } .material-icons.md-48 { font-size: 48px; } .material-icons.md-78 { font-size: 78px; } /* Rules for using icons as black on a light background. */ .material-icons.md-dark { color: rgba(0, 0, 0, 0.54); } .material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); } /* Rules for using icons as white on a dark background. */ .material-icons.md-light { color: rgba(255, 255, 255, 1); } .material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); } .material-icons.orange600 { color: #FB8C00; } </style> </head> <body> <h3>Sizing</h3> <i class="material-icons md-36">face</i> <i class="material-icons md-48">face</i> <i class="material-icons md-78">face</i> <h3>Coloring</h3> <i class="material-icons md-dark">face</i> <i class="material-icons md-dark md-inactive">face</i> <div style="background-color:#000000"> <i class="material-icons md-light">face</i> <i class="material-icons md-light md-inactive">face</i> </div> <i class="material-icons orange600">face</i> </body> </html> |
See the Pen Icon Font from Google by Suttipong Choysakda (@nathanbc46) on CodePen.
ข้อมูลเพิ่มเติม https://design.google.com/icons/
ป้ายกำกับ:icon font, Material Icons
Email : nathanbc46(at)gmail.com
Messenger : http://m.me/seenualpage
© SeeNual All rights reserved.
บทความ โดย สีนวลดอทคอม อนุญาตให้ใช้ได้ตาม สัญญาอนุญาตของครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า 4.0 International.