d-flex align-items-start在引导程序中不起作用

时间:2019-01-22 11:56:48

标签: bootstrap-4

我正在尝试使用 d-flex align-items-start 将导航栏顶部的导航项对齐,但是它不起作用,并且显示导航栏的中心,我该怎么做呢?请帮助我

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

<body>

  <div class="wrapper">
    <nav class="navbar navbar-expand-sm navbar-light admin-header fixed-top">
      <a class="navbar-brand" href="#"><img src="images/karvy-logo.png" class="img-fluid logo"></a>
      <ul class="navbar-nav bg-primary d-flex align-items-start">
        <li class="nav-item">
          <a class="nav-link " href="#">Home</a>
        </li>
      </ul>
    </nav>
  </div>
</body>

0 个答案:

没有答案