首页 > 代码库 > bootstrap图标字体不出来问题的解决办法

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修改为你存放图标字体的路径

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