bootstrap图标字体不出来问题的解决办法

@font-face {
font-family: 'Glyphicons Halflings';

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

 

 

找到bootstrap.css中的图标字体样式Glyphicons 

把字体的src修改为你存放图标字体的路径

posted @ 2017-06-15 19:53  sharestone  阅读(924)  评论(0编辑  收藏  举报