首页 > 代码库 > bootstrap34-带有导航栏的字体图标

bootstrap34-带有导航栏的字体图标

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>Bootstrap 字体图标</title>

<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  

</head>

<body>

<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">

<div class="container">

<div class="navbar-header">

<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

<span class="sr-only">Toggle navigation</span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

<span class="icon-bar"></span>

</button>

<a href="http://www.mamicode.com/#" class="navbar-brand">Project name</a>

</div>


<div class="collapse navbar-collapse">

<ul class="nav navbar-nav">

<li class="active">

<a href="">

<span class="glyphicon glyphicon-home">Home</span>

</a>

</li>

<li>

<a href="http://www.mamicode.com/#shop">

<span class="glyphicon glyphicon-shopping-cart">Shop</span>

</a>

</li>

<li>

<a href="http://www.mamicode.com/#support">

<span class="glyphicon glyphicon-headphones">Support</span>

</a>

</li>

</ul>

</div>

</div>

</div>

    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

  <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>

</html>


本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1895767

bootstrap34-带有导航栏的字体图标