html 引导程序菜单未关闭

tpgth1q7  于 2022-11-27  发布在  其他
关注(0)|答案(1)|浏览(122)

菜单打开但不关闭我不太明白是什么问题如果你能帮助我将不胜感激?我已经尝试了很多方法,但我还没有能够

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"><i class="fa fa-navicon"></i></span>
    </button>
    <div class="collapse navbar-collapse navi" id="navbarResponsive">
      <ul class="navbar-nav ml-auto">
       <li class="nav-item active"><a class="nav-link" href="#">Home<span class="sr-only">(current)</span></a></li>
   <li class="nav-item dropdown">
     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      mini service
     </a>
     <div class="dropdown-menu" aria-labelledby="navbarDropdown">
       <a class="dropdown-item" href="./4.html">4</a>
       <a class="dropdown-item" href="./3.html">3</a>
     </div>
   </li>
   </ul>
  </div>
eh57zj3b

eh57zj3b1#

问题不在于按钮,我也经历过几次,试着删除所有JavaScript链接,只链接javascript.min.js,看看它是否有效。

相关问题