引导中字体如何引用

  介绍

这篇文章将为大家详细讲解有关引导中字体如何引用,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

其实不需要下面这么麻烦<>强,只需要建一个字体文件夹放在和js, css文件同级目录下,就可以正确引用。

<强>关键是下面这几个文件得有:

glyphicons-halflings-regular.eot   glyphicons-halflings-regular.svg   glyphicons-halflings-regular.ttf   glyphicons-halflings-regular。woff 的

<>强相关的CSS规则写在dist文件夹内的CSS文件夹内的引导。css和bootstrap-min。css文件上。

<强>字体文件的路径请灵活改变

& lt;风格类型=拔谋?css"比;   @font-face {   字体类型:& # 39;Glyphicons半身# 39;;   src: url(& # 39;字体/glyphicons-halflings-regular.eot& # 39;);   src: url(& # 39;字体/glyphicons-halflings-regular.eot ? # iefix& # 39;)格式(& # 39;embedded-opentype& # 39;),   url(& # 39;字体/glyphicons-halflings-regular.woff& # 39;)格式(& # 39;woff # 39;),   url(& # 39;字体/glyphicons-halflings-regular.ttf& # 39;)格式(& # 39;truetype # 39;),   url(& # 39;字体/glyphicons-halflings-regular.svg # glyphicons_halflingsregular& # 39;)格式(& # 39;svg # 39;);   }   & lt;/style>

所以字体规则实际上是在找到glyphicons地方声明字体类型和位置。

关于引导中字体如何引用就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看的到。

引导中字体如何引用