为了账号安全,请及时绑定邮箱和手机立即绑定

html中怎么添加bootstrap中的图标?

html中怎么添加bootstrap中的图标?

撒科打诨 2019-02-07 11:07:33
html中怎么添加bootstrap中的图标
查看完整描述

2 回答

?
潇潇雨雨

TA贡献1833条经验 获得超4个赞

bootstrap 中包含的文件有
bootstrap/ ├── css/ │ ├── bootstrap.css │ ├── bootstrap.min.css ├── js/ │ ├── bootstrap.js │ ├── bootstrap.min.js └── img/ ├── glyphicons-halflings.png └── glyphicons-halflings-white.png

在你的web目录下面必须要有
└── img/ ├── glyphicons-halflings.png └── glyphicons-halflings-white.png
才能使用bootstrap 中的图标
使用的时候
<i class="icon-glass"></i>
这样就可以。

查看完整回答
反对 回复 2019-03-02
?
慕村225694

TA贡献1880条经验 获得超4个赞

只需要指定小图标的class就可以 如: <span class="glyphicon-class"></span>

查看完整回答
反对 回复 2019-03-02
  • 2 回答
  • 0 关注
  • 620 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信