W3C中文教程
全球最大最新的中文 Web 技术教程
HTML CSS SQL PHP COLORS MYSQL BOOTSTRAP
 

Bootstrap 字体图标



简介

Bootstrap 提供了包括260多个来自 Glyphicon Halflings 的字体图标。Glyphicons Halflings 一般是收费的,但是他们的作者允许 Bootstrap 免费使用。

字体图标可以被用于文本, 按钮, 表单, 面包屑等等。

这里有一些关于字体图标的例子:

Envelope glyphicon:

Print glyphicon:

Search glyphicon:

Download glyphicon:


语法

一个字体图标的插入应遵循下面的语法:

<span class="glyphicon glyphicon-name"></span>

名称 部分在语法上必须有适当的 字体图标 名称替换。


实例

下面的例子展示了不同的字体图标采用方式:

Example

<p>Envelope icon: <span class="glyphicon glyphicon-envelope"></span></p>
<p>Envelope icon as a link:
  <a href="#"><span class="glyphicon glyphicon-envelope"></span></a>
</p>
<p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
<p>Search icon on a button:
  <button type="button" class="btn btn-default">
    <span class="glyphicon glyphicon-search"></span> Search
  </button>
</p>
<p>Search icon on a styled button:
  <button type="button" class="btn btn-info">
    <span class="glyphicon glyphicon-search"></span> Search
  </button>
</p>
<p>Print icon: <span class="glyphicon glyphicon-print"></span></p>
<p>Print icon on a styled link button:
  <a href="#" class="btn btn-success btn-lg">
    <span class="glyphicon glyphicon-print"></span> Print
  </a>
</p>
尝试一下 »

可用的字体图标

图标 描述 实例
glyphicon glyphicon-asterisk 测 试
glyphicon glyphicon-plus 测 试
glyphicon glyphicon-minus 测 试
glyphicon glyphicon-euro 测 试
glyphicon glyphicon-cloud 测 试
glyphicon glyphicon-envelope 测 试
glyphicon glyphicon-pencil 测 试
glyphicon glyphicon-glass 测 试
glyphicon glyphicon-music 测 试
glyphicon glyphicon-search 测 试
glyphicon glyphicon-heart 测 试
glyphicon glyphicon-star 测 试
glyphicon glyphicon-star-empty 测 试
glyphicon glyphicon-user 测 试
glyphicon glyphicon-film 测 试
glyphicon glyphicon-th-large 测 试
glyphicon glyphicon-th 测 试
glyphicon glyphicon-th-list 测 试
glyphicon glyphicon-ok 测 试
glyphicon glyphicon-remove 测 试
glyphicon glyphicon-zoom-in 测 试
glyphicon glyphicon-zoom-out 测 试
glyphicon glyphicon-off 测 试
glyphicon glyphicon-signal 测 试
glyphicon glyphicon-cog 测 试
glyphicon glyphicon-trash 测 试
glyphicon glyphicon-home 测 试
glyphicon glyphicon-file 测 试
glyphicon glyphicon-time 测 试
glyphicon glyphicon-road 测 试
glyphicon glyphicon-download-alt 测 试
glyphicon glyphicon-download 测 试
glyphicon glyphicon-upload 测 试
glyphicon glyphicon-inbox 测 试
glyphicon glyphicon-play-circle 测 试
glyphicon glyphicon-repeat 测 试
glyphicon glyphicon-refresh 测 试
glyphicon glyphicon-list-alt 测 试
glyphicon glyphicon-lock 测 试
glyphicon glyphicon-flag 测 试
glyphicon glyphicon-headphones 测 试
glyphicon glyphicon-volume-off 测 试
glyphicon glyphicon-volume-down 测 试
glyphicon glyphicon-volume-up 测 试
glyphicon glyphicon-qrcode 测 试
glyphicon glyphicon-barcode 测 试
glyphicon glyphicon-tag 测 试
glyphicon glyphicon-tags 测 试
glyphicon glyphicon-book 测 试
glyphicon glyphicon-bookmark 测 试
glyphicon glyphicon-print 测 试
glyphicon glyphicon-camera 测 试
glyphicon glyphicon-font 测 试
glyphicon glyphicon-bold 测 试
glyphicon glyphicon-italic 测 试
glyphicon glyphicon-text-height 测 试
glyphicon glyphicon-text-width 测 试
glyphicon glyphicon-align-left 测 试
glyphicon glyphicon-align-center 测 试
glyphicon glyphicon-align-right 测 试
glyphicon glyphicon-align-justify 测 试
glyphicon glyphicon-list 测 试
glyphicon glyphicon-indent-left 测 试
glyphicon glyphicon-indent-right 测 试
glyphicon glyphicon-facetime-video 测 试
glyphicon glyphicon-picture 测 试
glyphicon glyphicon-map-marker 测 试
glyphicon glyphicon-adjust 测 试
glyphicon glyphicon-tint 测 试
glyphicon glyphicon-edit 测 试
glyphicon glyphicon-share 测 试
glyphicon glyphicon-check 测 试
glyphicon glyphicon-move 测 试
glyphicon glyphicon-step-backward 测 试
glyphicon glyphicon-fast-backward 测 试
glyphicon glyphicon-backward 测 试
glyphicon glyphicon-play 测 试
glyphicon glyphicon-pause 测 试
glyphicon glyphicon-stop 测 试
glyphicon glyphicon-forward 测 试
glyphicon glyphicon-fast-forward 测 试
glyphicon glyphicon-step-forward 测 试
glyphicon glyphicon-eject 测 试
glyphicon glyphicon-chevron-left 测 试
glyphicon glyphicon-chevron-right 测 试
glyphicon glyphicon-plus-sign 测 试
glyphicon glyphicon-minus-sign 测 试
glyphicon glyphicon-remove-sign 测 试
glyphicon glyphicon-ok-sign 测 试
glyphicon glyphicon-question-sign 测 试
glyphicon glyphicon-info-sign 测 试
glyphicon glyphicon-screenshot 测 试
glyphicon glyphicon-remove-circle 测 试
glyphicon glyphicon-ok-circle 测 试
glyphicon glyphicon-ban-circle 测 试
glyphicon glyphicon-arrow-left 测 试
glyphicon glyphicon-arrow-right 测 试
glyphicon glyphicon-arrow-up 测 试
glyphicon glyphicon-arrow-down 测 试
glyphicon glyphicon-share-alt 测 试
glyphicon glyphicon-resize-full 测 试
glyphicon glyphicon-resize-small 测 试
glyphicon glyphicon-exclamation-sign 测 试
glyphicon glyphicon-gift 测 试
glyphicon glyphicon-leaf 测 试
glyphicon glyphicon-fire 测 试
glyphicon glyphicon-eye-open 测 试
glyphicon glyphicon-eye-close 测 试
glyphicon glyphicon-warning-sign 测 试
glyphicon glyphicon-plane 测 试
glyphicon glyphicon-calendar 测 试
glyphicon glyphicon-random 测 试
glyphicon glyphicon-comment 测 试
glyphicon glyphicon-magnet 测 试
glyphicon glyphicon-chevron-up 测 试
glyphicon glyphicon-chevron-down 测 试
glyphicon glyphicon-retweet 测 试
glyphicon glyphicon-shopping-cart 测 试
glyphicon glyphicon-folder-close 测 试
glyphicon glyphicon-folder-open 测 试
glyphicon glyphicon-resize-vertical 测 试
glyphicon glyphicon-resize-horizontal 测 试
glyphicon glyphicon-hdd 测 试
glyphicon glyphicon-bullhorn 测 试
glyphicon glyphicon-bell 测 试
glyphicon glyphicon-certificate 测 试
glyphicon glyphicon-thumbs-up 测 试
glyphicon glyphicon-thumbs-down 测 试
glyphicon glyphicon-hand-right 测 试
glyphicon glyphicon-hand-left 测 试
glyphicon glyphicon-hand-up 测 试
glyphicon glyphicon-hand-down 测 试
glyphicon glyphicon-circle-arrow-right 测 试
glyphicon glyphicon-circle-arrow-left 测 试
glyphicon glyphicon-circle-arrow-up 测 试
glyphicon glyphicon-circle-arrow-down 测 试
glyphicon glyphicon-globe 测 试
glyphicon glyphicon-wrench 测 试
glyphicon glyphicon-tasks 测 试
glyphicon glyphicon-filter 测 试
glyphicon glyphicon-briefcase 测 试
glyphicon glyphicon-fullscreen 测 试
glyphicon glyphicon-dashboard 测 试
glyphicon glyphicon-paperclip 测 试
glyphicon glyphicon-heart-empty 测 试
glyphicon glyphicon-link 测 试
glyphicon glyphicon-phone 测 试
glyphicon glyphicon-pushpin 测 试
glyphicon glyphicon-usd 测 试
glyphicon glyphicon-gbp 测 试
glyphicon glyphicon-sort 测 试
glyphicon glyphicon-sort-by-alphabet 测 试
glyphicon glyphicon-sort-by-alphabet-alt 测 试
glyphicon glyphicon-sort-by-order 测 试
glyphicon glyphicon-sort-by-order-alt 测 试
glyphicon glyphicon-sort-by-attributes 测 试
glyphicon glyphicon-sort-by-attributes-alt 测 试
glyphicon glyphicon-unchecked 测 试
glyphicon glyphicon-expand 测 试
glyphicon glyphicon-collapse-down 测 试
glyphicon glyphicon-collapse-up 测 试
glyphicon glyphicon-log-in 测 试
glyphicon glyphicon-flash 测 试
glyphicon glyphicon-log-out 测 试
glyphicon glyphicon-new-window 测 试
glyphicon glyphicon-record 测 试
glyphicon glyphicon-save 测 试
glyphicon glyphicon-open 测 试
glyphicon glyphicon-saved 测 试
glyphicon glyphicon-import 测 试
glyphicon glyphicon-export 测 试
glyphicon glyphicon-send 测 试
glyphicon glyphicon-floppy-disk 测 试
glyphicon glyphicon-floppy-saved 测 试
glyphicon glyphicon-floppy-remove 测 试
glyphicon glyphicon-floppy-save 测 试
glyphicon glyphicon-floppy-open 测 试
glyphicon glyphicon-credit-card 测 试
glyphicon glyphicon-transfer 测 试
glyphicon glyphicon-cutlery 测 试
glyphicon glyphicon-header 测 试
glyphicon glyphicon-compressed 测 试
glyphicon glyphicon-earphone 测 试
glyphicon glyphicon-phone-alt 测 试
glyphicon glyphicon-tower 测 试
glyphicon glyphicon-stats 测 试
glyphicon glyphicon-sd-video 测 试
glyphicon glyphicon-hd-video 测 试
glyphicon glyphicon-subtitles 测 试
glyphicon glyphicon-sound-stereo 测 试
glyphicon glyphicon-sound-dolby 测 试
glyphicon glyphicon-sound-5-1 测 试
glyphicon glyphicon-sound-6-1 测 试
glyphicon glyphicon-sound-7-1 测 试
glyphicon glyphicon-copyright-mark 测 试
glyphicon glyphicon-registration-mark 测 试
glyphicon glyphicon-cloud-download 测 试
glyphicon glyphicon-cloud-upload 测 试
glyphicon glyphicon-tree-conifer 测 试
glyphicon glyphicon-tree-deciduous 测 试
glyphicon glyphicon-cd 测 试
glyphicon glyphicon-save-file 测 试
glyphicon glyphicon-open-file 测 试
glyphicon glyphicon-level-up 测 试
glyphicon glyphicon-copy 测 试
glyphicon glyphicon-paste 测 试
glyphicon glyphicon-alert 测 试
glyphicon glyphicon-equalizer 测 试
glyphicon glyphicon-king 测 试
glyphicon glyphicon-queen 测 试
glyphicon glyphicon-pawn 测 试
glyphicon glyphicon-bishop 测 试
glyphicon glyphicon-knight 测 试
glyphicon glyphicon-baby-formula 测 试
glyphicon glyphicon-tent 测 试
glyphicon glyphicon-blackboard 测 试
glyphicon glyphicon-bed 测 试
glyphicon glyphicon-apple 测 试
glyphicon glyphicon-erase 测 试
glyphicon glyphicon-hourglass 测 试
glyphicon glyphicon-lamp 测 试
glyphicon glyphicon-duplicate 测 试
glyphicon glyphicon-piggy-bank 测 试
glyphicon glyphicon-scissors 测 试
glyphicon glyphicon-bitcoin 测 试
glyphicon glyphicon-yen 测 试
glyphicon glyphicon-ruble 测 试
glyphicon glyphicon-scale 测 试
glyphicon glyphicon-ice-lolly 测 试
glyphicon glyphicon-ice-lolly-tasted 测 试
glyphicon glyphicon-education 测 试
glyphicon glyphicon-option-horizontal 测 试
glyphicon glyphicon-option-vertical 测 试
glyphicon glyphicon-menu-hamburger 测 试
glyphicon glyphicon-modal-window 测 试
glyphicon glyphicon-oil 测 试
glyphicon glyphicon-grain 测 试
glyphicon glyphicon-sunglasses 测 试
glyphicon glyphicon-text-size 测 试
glyphicon glyphicon-text-color 测 试
glyphicon glyphicon-text-background 测 试
glyphicon glyphicon-object-align-top 测 试
glyphicon glyphicon-object-align-bottom 测 试
glyphicon glyphicon-object-align-horizontal 测 试
glyphicon glyphicon-object-align-left 测 试
glyphicon glyphicon-object-align-vertical 测 试
glyphicon glyphicon-object-align-right 测 试
glyphicon glyphicon-triangle-right 测 试
glyphicon glyphicon-triangle-left 测 试
glyphicon glyphicon-triangle-bottom 测 试
glyphicon glyphicon-triangle-top 测 试
glyphicon glyphicon-superscript 测 试
glyphicon glyphicon-subscript 测 试
glyphicon glyphicon-menu-left 测 试
glyphicon glyphicon-menu-right 测 试
glyphicon glyphicon-menu-down 测 试
glyphicon glyphicon-menu-up 测 试