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

上一篇:css3实现小黄人


下一篇:spring事务知识