Html 具有移动支持和徽标的导航栏
Html navbar with mobile support and logo
我想在我的网站上有一个导航栏,但想不出来我想让它看起来像
this
但我想在它上面有一个标志,所以这就是我遇到的问题。它应该看起来像下面这个 site
转到https://getbootstrap.com/getting-started/,您可以学习使用bootstrap轻松创建导航栏等内容。
将其放在头部 html 脚本的顶部,以便 bootstrap 工作或下载 bootstrap 并将其放入项目文件夹。
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
这里是一个使用 bootstrap 的例子。
<!--appear when room to display is smaller-->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#top">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Your Logo</a>
</div>
<div class="collapse navbar-collapse" id="top">
<ul class="nav navbar-nav">
<li class="active">
<a href ="put your link here">
Item
</a>
</li>
<!--align content to the right-->
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href ="">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Item
</a>
</li>
<li class="active">
<a href ="">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
Item
</a>
</li>
</ul>
</div>
</div>
</nav>
我想在我的网站上有一个导航栏,但想不出来我想让它看起来像 this 但我想在它上面有一个标志,所以这就是我遇到的问题。它应该看起来像下面这个 site
转到https://getbootstrap.com/getting-started/,您可以学习使用bootstrap轻松创建导航栏等内容。
将其放在头部 html 脚本的顶部,以便 bootstrap 工作或下载 bootstrap 并将其放入项目文件夹。
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
这里是一个使用 bootstrap 的例子。
<!--appear when room to display is smaller-->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#top">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Your Logo</a>
</div>
<div class="collapse navbar-collapse" id="top">
<ul class="nav navbar-nav">
<li class="active">
<a href ="put your link here">
Item
</a>
</li>
<!--align content to the right-->
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href ="">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Item
</a>
</li>
<li class="active">
<a href ="">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
Item
</a>
</li>
</ul>
</div>
</div>
</nav>