bootstrap icon 不显示的解决方法

小编给大家分享一下bootstrap icon 不显示的解决方法,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

bootstrap icon不显示的解决办法:首先找到fonts文件夹下的指定文件;然后保证该文件和bootstrap.css文件的相对路径正确即可。

bootstrap glyphicon图标不显示的问题。

今天在用bootstrap写轮播图的时候用到了左右两个箭头的图标。

<a class="left carousel-control" href="#carousel-186457" data-slide="prev"><br>  <span class="glyphicon glyphicon-chevron-left"></span><br></a><br><a class="right carousel-control" href="#carousel-186457" data-slide="next"><br>  <span class="glyphicon glyphicon-chevron-right"></span><br></a>

但是效果确是这个样子(Firefox) 在别的浏览器上甚至什么都没有。

bootstrap icon 不显示的解决方法

后来发现在bootstrap.css文件中有对字体路径的引用。

bootstrap icon 不显示的解决方法

所以要吧这个文件夹拷过来,并且保证和 bootstrap.css文件的相对路径正确。图标就能正确显示。

bootstrap icon 不显示的解决方法

看完了这篇文章,相信你对bootstrap icon 不显示的解决方法有了一定的了解,想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!