我以前没有使用任何bootstrap框架。我想在我的页面的引导程序3中包含一些glyphicons。根据我的理解,他们应该包含在我已添加到我的页面的bootstrap.css文件中。当我查看bootstrap.css文件但是我没有看到对它们的引用?虽然它的一个大文件我可能错过了一些东西。如何在引导程序中包含glyphicons 3
我注意到,当我打开从引导3下载的文件夹dist
有一个单独的文件夹fonts
包含文件名为:
glyphicons-halflings-regular.eot
glyphicons-halflings-regular.svg
glyphicons-halflings-regular.ttf
glyphicons-halflings-regular.woff
,好像这是那里的glyphicons是,但是我不知道如何将这些附加到我的网站?我如何将glyphicons附加到我的页面上?
感谢所有帮助提前
下面的代码显示了附加bootstrap.css文件:
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap example</title>
<meta name="viewport" content="width=divice-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="bootstrap.css" rel="stylesheet" media="screen">
</head>
这里是html
代码表示将glyphicons应该是部分:
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span>
Home</a></li>
<li><a href="#"><span class="glyphicon glyphicon-star"></span> Top
Destinations</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
class="glyphicon glyphicon-user"></span> About Us<b class="caret"></b></a>
查看在哪里保存字体文件(http://getbootstrap.com/getting-started/#whats-included-precompiled)并阅读关于导入顺序(https://github.com/twbs/bootstrap- sass#字体)帮助了我。 – Ryan