如何为多个导航栏折叠创建多个navbar-header。单击navbar-header#1时,首先显示navbar-collapse,然后当我单击navbar-header#2时,显示下一个navbar-collapse。
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<nav id="menu" class="navbar">
<div class="navbar-header"><span class="visible-xs visible-sm">#1</span></div>
<div class="navbar-header"><span class="visible-xs visible-sm">#2</span></div>
<div class="navbar-header"><span class="visible-xs visible-sm">#3</span></div>
<div class="navbar-header"><span class="visible-xs visible-sm">#4</span></div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a class="home_link" title="Home" href="index.php"><span><b>Menu</b></span></a></li>
<li class="custom-link"><a href="cara-order.html"><strong>Menu</strong></a></li>
<li class="contact-link"><a href="katalog.html"><strong>Menu</strong></a></li>
</ul>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a class="home_link" title="Home" href="index.php"><span><b>Menu</b></span></a></li>
<li class="custom-link"><a href="cara-order.html"><strong>Menu</strong></a></li>
<li class="contact-link"><a href="katalog.html"><strong>Menu</strong></a></li>
</ul>
</div>
</nav>