导航栏中文本上方的下拉箭头

I'm trying to have a dropdown on a navbar item. It works, but the arrow is over the text of the menu item. enter image description here

Codepen:

https://codepen.io/ogonzales/pen/QWjmorP

<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark" style="height: 70px;">
    <a class="navbar-brand" href="#">Fixed navbar</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarCollapse">
      <ul class="navbar-nav mr-auto">
        <li class="nav-item active">
          <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Link</a>
        </li>
        <li class="nav-item">
          <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</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">
            More
          </a>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
            <a class="dropdown-item" href="/support/">Support and Consulting</a>
            <a class="dropdown-item" href="/test-driven-development/">What is Test-Driven Development?</a>
            <a class="dropdown-item" href="/testimonials/">Testimonials</a>
          </div>
        </li>
      </ul>

        <form class="form-inline ml-auto">
          <a href="{% url 'account_login' %}" class="btn btn-outline-secondary">Log in</a>
          <a href="{% url 'account_signup' %}" class="btn btn-primary ml-2">Sign up</a>
        </form>

    </div>
  </nav>

奖金

我也想将每个导航栏项目都放在右边。我知道我可以使用CSS做到这一点,但是我缺少一个Boostrap类吗?

评论