是否可以在不加载整个库的情况下加载引导程序图标?我尝试将引导字体粘贴到css中,但仍然没有运气 - 这可以实现吗?
@font-face {
font-family: 'Glyphicons Halflings';
src: url('/fonts/ChaparralPro-Regular.woff');
src: url('/fonts/fontawesome-webfont.woff2?v=4.6.3');
src: url('/font/glyphicons-halflings-regular.ttf');
src: url('/fonts/glyphicons-halflings-regular.woff');
src: url('/font/glyphicons-halflings-regular.woff2');
src: url('/fonts/kievitot-book-webfont.woff');
src: url('fonts/Segoe_ui-webfont.woff');
}
.glyphicon-thumbs-up:before {
content: "\e125";
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
<i class="glyph-icon icon-chevron-down"></i>