本文摘自PHP中文网,作者藏色散人,侵删。
bootstrap字体图标的引用方法:首先建一个fonts文件夹;然后放在和js、css文件同级目录下;最后通过“src: url('font/glyphicons-halflings-regular.eot');”方式引用字体图标即可。

本教程操作环境:Windows7系统、bootstrap3版,该方法适用于所有品牌电脑。
推荐:《bootstrap教程》
Bootstrap正确引用字体图标:
补充:
其实不需要下面这么麻烦,只需要建一个fonts文件夹放在和js,css文件同级目录下,就可以正确引用,关键是下面这几个文件得有:

第一种(字体文件的路径请灵活改变)
1 2 3 4 5 6 | <style type= "text/css" >
@font-face {
font-family: 'Glyphicons Halflings' ;
src: url( 'font/glyphicons-halflings-regular.eot' );
src: url( 'font/glyphicons-halflings-regular.eot?#iefix' ) format( 'embedded-opentype' ), url( 'font/glyphicons-halflings-regular.woff' ) format( 'woff' ), url( 'font/glyphicons-halflings-regular.ttf' ) format( 'truetype' ), url( 'fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular' ) format( 'svg' );
}
|
阅读剩余部分
相关阅读 >>
spss可以做bootstrap吗
bootstrap4如何设置模态框
bootstrap为什么弹出框没有内容
不用bootstrap的理由有哪些
bootstrap如何触发下拉菜单
bootstrap的下拉多选框如何使用
bootstrap弹窗代码写在哪里
浅谈bootstrap中glyphicons图标的用法
elementui和bootstrap区别
bootstrap为什么是12列
更多相关阅读请进入《bootstrap》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » bootstrap字体图标怎么引用