私は理由はわかりませんが、ブートストラップ(3.3.7)のグリフコンがないので、通常の醜い正方形で置き換えられています。ブートストラップのグリフコンがありません
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>
そして、ここではそれがglyphiconのフォントが含まれているブートストラップ一部です:
@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');
}
グリフコンまたはブートストラップファイルにリンクするコードの部分を表示できますか? –
@BlueBoyありがとう、しかし、すでに私の問題を解決!しかし、私はグリフコンのフォントの一部をブートストラップから残しました –