导航在index.html上更改大小

时间:2017-10-07 13:55:28

标签: html css bootstrap-4 nav

我正在使用Bootstrap导航栏:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="who.html"><img src="../img/RP.png" id="brand-img"/></a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
    <ul class="navbar-nav ml-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">WHO <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="what.html">WHAT</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="how.html">HOW</a>
      </li>
    </ul>
  </div>
</nav>

然而,当我切换到what.html和how.html页面时,导航变得略小一些。当我将index.html重命名为who.html时,我不再看到这个bug。有什么想法吗?

0 个答案:

没有答案