您好,我想创建一个网站,我想要导航栏,在我想创建徽标的底部(左侧)。它应该坚持使用导航栏,但我希望它稍微伸出一点。像这样 navbar
我也希望我的网站能够响应,但是当我有2个导航栏时,将其最小化后我可以看到2个菜单按钮,有什么办法只能看到1个吗?菜单按钮,然后单击该按钮,我希望看到列出的两个菜单。 menu enter image description here 请帮助:)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {height: 450px}
/* Set gray background color and 100% height */
.sidenav {
padding-top: 20px;
background-color: #f1f1f1;
height: 100%;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: white;
padding: 15px;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: 100%;
padding: 15px;
}
.row.content {height:auto;}
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Friends</a></li>
<li><a href="#">Messages</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="mibs.html">Account
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/mibs.html">Settings</a></li>
<li><a href="/feedbacks.html">Stats</a></li>
<li><a href="/comments.html">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar2">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar2">
<ul class="nav navbar-nav">
<a class="navbar-brand" href="/index.html">
<img class="logo" style="top: 0px; width: 200px; height: 200px; position: absolute; z-index: 20;" src="logo.png">
</a>
<li class="active"><a href="/index.html">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="mibs.html">MIB's
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/mibs.html">My MIB's</a></li>
<li><a href="/feedbacks.html">My feedbacks</a></li>
<li><a href="/comments.html">Comments</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="mibs.html">Library
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/library_standard.html">Standard</a></li>
<li><a href="/library_random.html">Random</a></li>
<li><a href="/library_custom.html">Custom</a></li>
</ul>
</li>
<li><a href="#">Badges</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="mibs.html">Help
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/library_standard.html">FAQ</a></li>
<li><a href="/library_random.html">Contact</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</body>
</html>