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

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

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

Helenr 2019-02-07 11:07:09
html中怎么添加bootstrap中的图标
查看完整描述

2 回答

?
拉风的咖菲猫

TA贡献1995条经验 获得超2个赞

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>
这样就可以。详细的icon列表你可以去bootstrap的官网上面看。

查看完整回答
反对 回复 2019-03-04
?
宝慕林4294392

TA贡献2021条经验 获得超8个赞

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

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

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号