本文摘自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' );
}
|
阅读剩余部分
相关阅读 >>
bootstrap框架是什么意思
bootstrap有什么优点
bootstrap怎么处理缓存问题
bootstrap如何读
bootstrap是哪家开发的
bootstrap有必要学吗
bootstrap 输入框只读的设置方法
jquery和bootstrap的区别是什么?
bootstrap怎么实现分页技术
bootstrap的优缺点是什么?
更多相关阅读请进入《bootstrap》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » bootstrap字体图标怎么引用