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

bootstrap里有 bootstrap-glyphicons.css吗

bootstrap里有 bootstrap-glyphicons.css吗

泛舟湖上清波郎朗 2019-03-15 11:10:35
bootstrap里有 bootstrap-glyphicons.css吗
查看完整描述

2 回答

?
拉丁的传说

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

是没有这个名字的css文件的,但有可能存在于bootstrap.css中,另外,如果要使用矢量图标的话要引入目录里的fonts文件才可以使用

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

@font-face {

    font-family: 'Glyphicons Halflings';

    src: url('../fonts/glyphicons-halflings-regular.eot');

    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');

}

.glyphicon {

    position: relative;

    top: 2px;

    display: inline-block;

    font-family: 'Glyphicons Halflings';

    -webkit-font-smoothing: antialiased;

    font-style: normal;

    font-weight: normal;

    line-height: 1;

    -moz-osx-font-smoothing: grayscale;

    color: #8b919c;

}


 


查看完整回答
反对 回复 2019-03-20
?
慕尼黑的夜晚无繁华

TA贡献1864条经验 获得超6个赞

还字体文件,bootstrap.min.css 会引用它们:
glyphicons-halflings-regular.eot
glyphicons-halflings-regular.svg
glyphicons-halflings-regular.ttf
glyphicons-halflings-regular.woff
glyphicons-halflings-regular.woff2

bootstrap.min.css 里有这样的代码:
@font-face {
font-family: 'Glyphicons Halflings';

src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}



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

添加回答

举报

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