
- Font Awesome
- Font Awesome 圖示
- Font Awesome - 網頁圖示
- Font Awesome - 手部圖示
- Font Awesome - 交通圖示
- Font Awesome - 性別圖示
- Font Awesome - 檔案型別圖示
- Font Awesome - 載入動畫圖示
- Font Awesome - 表單控制元件圖示
- Font Awesome - 支付圖示
- Font Awesome - 圖表圖示
- Font Awesome - 貨幣圖示
- Font Awesome - 文字編輯器圖示
- Font Awesome - 方向圖示
- Font Awesome - 播放器圖示
- Font Awesome - 品牌圖示
- Font Awesome - 醫療圖示
- Material Icons
- Material Icons
- Material - 動作圖示
- Material - 警告圖示
- Material - 音影片圖示
- Material - 通訊圖示
- Material - 內容圖示
- Material - 裝置圖示
- Material - 編輯器圖示
- Material - 檔案圖示
- Material - 硬體圖示
- Material - 圖片圖示
- Material - 地圖圖示
- Material - 導航圖示
- Material - 通知圖示
- Material - 社交圖示
- Material - 切換圖示
- Bootstrap Glyphicons
- Bootstrap Glyphicons
- Bootstrap - 元件
- 網頁圖示實用資源
- 網頁圖示 - 快速指南
- 網頁圖示 - 實用資源
- 網頁圖示 - 討論
Bootstrap Glyphicons
這是一個包含單色圖示的庫,以光柵影像格式、向量影像格式和字型形式提供。它以字型格式提供了超過 250 個字形。您可以在您的 Web 專案中使用這些字型。這些字形不是免費的,但是如果您在基於 Bootstrap 的專案中使用它們,則無需支付任何費用。
載入字型(庫)
要載入 Bootstrap Glyphicons 庫,請將以下行復制並貼上到網頁的 <head> 部分。
<head> <link rel = "stylesheet" href = "http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> </head>
使用圖示
Bootstrap Glyphicons 提供了許多圖示。選擇其中一個,並將圖示類名稱新增到 <body> 標籤內的任何 HTML 元素中。在下面的示例中,我們使用了樹的圖示,其類名稱為 tree-deciduous。
<html> <head> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> </head> <body> <i class = "glyphicon glyphicon-tree-deciduous"> </i> </body> </html>
它將產生以下輸出:
定義大小
您可以透過在 CSS 中定義其大小並在其後使用類名來增加或減小圖示的大小,如下所示。在下面的示例中,我們已將大小定義為 6em。
<html> <head> <link rel="stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"><style> i.mysize {font-size: 6em;} </style> </head> <body> <i class="glyphicon glyphicon-tree-deciduous mysize"></i> </body> </html>
它將產生以下輸出
定義顏色
您可以使用 CSS 定義圖示的顏色。以下示例演示瞭如何更改樹圖示的顏色。
<html> <head> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"><style> i.mysize {font-size: 6em; color: blue;} </style> </head> <body> <i class="glyphicon glyphicon-tree-deciduous mysize"></i> </body> </html>
它將產生以下輸出:
廣告