Bootstrap字体图标

获取字体图标

下载了 Bootstrap 3.x 版本,并理解了它的目录结构。在 fonts 文件夹内可以找到字体图标,它包含了下列这些文件:

·        glyphicons-halflings-regular.eot

·        glyphicons-halflings-regular.svg

·        glyphicons-halflings-regular.ttf

·        glyphicons-halflings-regular.woff

相关的 CSS 规则写在 dist 文件夹内的 css 文件夹内的 bootstrap.css  bootstrap-min.css 文件上。

用法

如需使用图标,只需要简单地使用下面的代码即可。请在图标和文本之间保留适当的空间。

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

内容来源:点击打开链接

猜你喜欢

转载自blog.csdn.net/qq_26460841/article/details/80547168