in English

Navbar ye

Sɛbɛnw ni misaliw Bootstrap ka navigatiɔn kuncɛ barikama, min bɛ jaabi di, n’o ye navbar ye. Dɛmɛ bɛ sɔrɔ a la ka ɲɛsin markali ma, navigatiɔn, collapse plugin ani fɛn wɛrɛw ma.

A bɛ baara kɛ cogo min na

Aw ka kan ka fɛn minnu dɔn sani aw ka navbar daminɛ, olu filɛ nin ye:

  • Navbars bɛ ɲini wrapping .navbarni .navbar-expand{-sm|-md|-lg|-xl}for responsive collapsing ani color scheme classes.
  • Navbarw n’u kɔnɔkow ye ji ye ka da a kan. Aw bɛ baara kɛ ni minɛnw ye minnu bɛ se ka kɛ walasa ka dan sigi u bonya tilennen na.
  • Baara kɛ ni an ka spacing ani flex utility classes ye walasa ka spacing ni alignment kɔlɔsi navbars kɔnɔ.
  • Navbars bɛ jaabi di ka da a kan, nka i bɛ se k’u ladilan nɔgɔya la walasa k’o Changer. Jaabi kɛcogo bɛ bɔ an ka Collapse JavaScript plugin de la.
  • Navbarw bɛ dogo ka kɛɲɛ ni u yɛrɛ ye ni u bɛ sɛbɛnni kɛ. Wajibiya u ka sɛbɛn ni farali .d-printye .navbar. Aw ye jiracogo nafama kalasi lajɛ.
  • Aw ye aw janto sɔrɔli la ni baara kɛli ye ni <nav>fɛn dɔ ye walima, ni aw bɛ baara kɛ ni fɛn dɔ ye min ka ca ni fɛn bɛɛ ye i n’a fɔ a <div>, aw bɛ a fara role="navigation"navbar bɛɛ kan walasa k’a jira k’a jɛya ko a ye yɔrɔ taamasiyɛn ye dɛmɛni fɛɛrɛw baarakɛlaw bolo.
Nin yɔrɔ in ka animation nɔ bɛ bɔ prefers-reduced-motionmedia ɲininkali de la. aw ye an ka sɔrɔli sɛbɛnw yɔrɔ lajɛ min bɛ lamaga dɔgɔyalen na .

Kɔnɔkow minnu bɛ dɛmɛ

Navbarw bɛ na ni dɛmɛni ye min bɛ don a kɔnɔ ka ɲɛsin bolomafara fitinin dɔw ma. Aw bɛ ninnu sugandi ni aw mago bɛ a la:

  • .navbar-brandka ɲɛsin i ka sosiyete, i ka fɛn dilannen, walima i ka porozɛ tɔgɔ ma.
  • .navbar-navwalasa ka navigatiɔn dafalen ni nɔgɔya sɔrɔ (dɛmɛni fana sen bɛ o la ka ɲɛsin jiginɛw ma).
  • .navbar-togglerka baara kɛ ni an ka collapse plugin ye ani navigation toggling kɛcogo wɛrɛw.
  • .form-inlineka ɲɛsin foroko o cogoya kɔlɔsili ni walew ma.
  • .navbar-textwalasa ka sɛbɛnniw sɛrɛw fara ɲɔgɔn kan minnu bɛ cɛmancɛ jɔlen na.
  • .collapse.navbar-collapseka navbar kɔnɔkow kulu ni u dogo bangebaga ka kariyɔrɔ dɔ fɛ.

Nin ye misali ye min bɛ yɔrɔ fitininw bɛɛ la minnu bɛ jaabi yeelen-ko-ɲɛnabɔ-navbar kɔnɔ min bɛ bin a yɛrɛma lg(ba) kariyɔrɔ la.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <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 dropdown">
        <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
          Dropdown
        </a>
        <div class="dropdown-menu">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

Nin misali in bɛ baara kɛ ni kulɛri ( bg-light) ni yɔrɔjan ( my-2, my-lg-0, mr-sm-0, my-sm-0) nafama kalasiw ye.

Mariki

The .navbar-brandbɛ se ka kɛ fɛn fanba la, nka ankɔri bɛ baara kɛ ka ɲɛ, bawo fɛn dɔw bɛ se ka nafalanw walima ladamu cogoyaw de wajibiya.

<!-- As a link -->
<nav class="navbar navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
</nav>

<!-- As a heading -->
<nav class="navbar navbar-light bg-light">
  <span class="navbar-brand mb-0 h1">Navbar</span>
</nav>

Jaw farali ja kan, a ka c’a la, o .navbar-brandbɛna kɛ sababu ye tuma bɛɛ ka ladamu cogoyaw walima nafamafɛnw kɛ walasa u ka bonya ka ɲɛ. Misali dɔw filɛ nin ye minnu bɛ se ka jira.

<!-- Just an image -->
<nav class="navbar navbar-light bg-light">
  <a class="navbar-brand" href="#">
    <img src="/docs/4.6/assets/brand/bootstrap-solid.svg" width="30" height="30" alt="">
  </a>
</nav>
<!-- Image and text -->
<nav class="navbar navbar-light bg-light">
  <a class="navbar-brand" href="#">
    <img src="/docs/4.6/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
    Bootstrap
  </a>
</nav>

Navbar navigation links bɛ jɔ an ka .navsugandiliw kan n’u yɛrɛ ka modifier class ye ani u bɛ baara kɛ ni toggler classes ye walasa ka jaabi kɛcogo ɲuman sɔrɔ. Navigation in navbars fana bɛna bonya walasa ka yɔrɔ horizontal caman minɛ i n’a fɔ a bɛ se ka kɛ cogo min na walasa i ka navbar kɔnɔkow ka to u cogo la ka ɲɛ.

Active states—ni .active—ka ɲɛ min bɛ yen sisan, olu jira, olu bɛ se ka kɛ ka ɲɛsin .nav-links ma walima u bangebaga gɛrɛfɛ .nav-items ma.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <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="#">Features</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Pricing</a>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled">Disabled</a>
      </li>
    </ul>
  </div>
</nav>

Wa ikomi an bɛ baara Kɛ ni kalanw ye an ka navs (navs) kama, i bɛ Se k'i yɛrɛ Kɔrɔbɔ list-based approach (list-based approach) la pewu n'i b'a fɛ.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
    <div class="navbar-nav">
      <a class="nav-link active" href="#">Home <span class="sr-only">(current)</span></a>
      <a class="nav-link" href="#">Features</a>
      <a class="nav-link" href="#">Pricing</a>
      <a class="nav-link disabled">Disabled</a>
    </div>
  </div>
</nav>

Aw bɛ se fana ka baara kɛ ni fɛnw ye minnu bɛ bɔ aw ka navbar kɔnɔ. Meniw minnu bɛ jigin, olu bɛ fɛn dɔ de wajibiya min bɛ kɛ ka fɛnw siri, o la, aw ye aw jija ka baara kɛ ni fɛnw ye minnu bɛ danfara la ani minnu bɛ sigi sen kan .nav-itemani .nav-linki n’a fɔ a jiralen bɛ cogo min na jukɔrɔ.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNavDropdown">
    <ul class="navbar-nav">
      <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="#">Features</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Pricing</a>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
          Dropdown link
        </a>
        <div class="dropdown-menu">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li>
    </ul>
  </div>
</nav>

Sɛbɛnw

Aw bɛ foroko kunkankow ni yɔrɔw suguya caman bila navbar kɔnɔ ni .form-inline.

<nav class="navbar navbar-light bg-light">
  <form class="form-inline">
    <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  </form>
</nav>

Teliya la den elements of .navbaruse flex layout ani a bɛna default kɛ justify-content: space-between. Aw bɛ baara kɛ ni flex utilité wɛrɛw ye i n’a fɔ aw mago bɛ cogo min na walasa ka o kɛcogo ladilan.

<nav class="navbar navbar-light bg-light">
  <a class="navbar-brand">Navbar</a>
  <form class="form-inline">
    <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  </form>
</nav>

Donan kuluw bɛ baara kɛ, olu fana:

<nav class="navbar navbar-light bg-light">
  <form class="form-inline">
    <div class="input-group">
      <div class="input-group-prepend">
        <span class="input-group-text" id="basic-addon1">@</span>
      </div>
      <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
    </div>
  </form>
</nav>

Butɔn suguya caman bɛ dɛmɛ ka kɛ nin navbar foroko ninnu dɔ ye, olu fana. Nin fana ye hakilijiginba ye ko jɛgɛncogo nafamafɛnw bɛ se ka kɛ ka fɛnw labɛn minnu bonya tɛ kelen ye.

<nav class="navbar navbar-light bg-light">
  <form class="form-inline">
    <button class="btn btn-outline-success" type="button">Main button</button>
    <button class="btn btn-sm btn-outline-secondary" type="button">Smaller button</button>
  </form>
</nav>

Masalabolo

Navbarw bɛ se ka sɛbɛnni bitikiw sɔrɔ ni dɛmɛ ye .navbar-text. Nin kalan in bɛ ɲɔgɔndan jɔlenw ni janya tilennenw ladilan sɛbɛnniw sɛrɛw kama.

<nav class="navbar navbar-light bg-light">
  <span class="navbar-text">
    Navbar text with an inline element
  </span>
</nav>

Aw bɛ a ɲagami ka a bɛn ni a yɔrɔ wɛrɛw ni nafamafɛnw ye ni aw mago bɛ a la.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar w/ text</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarText">
    <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="#">Features</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Pricing</a>
      </li>
    </ul>
    <span class="navbar-text">
      Navbar text with an inline element
    </span>
  </div>
</nav>

Kulɛriw cogoyaw

Theming the navbar ma deli ka nɔgɔn ka tɛmɛ theming classes ni background-colorutilities faralen ɲɔgɔn kan. Sugandili .navbar-lightkɛ walasa ka baara kɛ ni kɔkanna kulɛri jɛlenw ye, walima ka baara kɛ ni kɔkanna kulɛri .navbar-darkdibimanw ye. O kɔfɛ, i ka customize ni .bg-*utilities ye.

<nav class="navbar navbar-dark bg-dark">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-dark bg-primary">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-light" style="background-color: #e3f2fd;">
  <!-- Navbar content -->
</nav>

Minɛnw

Hali n'a ma Kɛ wajibi ye, i bɛ Se ka navbar (navbar) siri a la .containerk'a cɛmancɛ Kɛ ɲɛ dɔ kan. Walima aw bɛ se ka minɛn dɔ fara a kɔnɔ walasa ka sanfɛla navbar jɔlen walima jɔlen.navbar kɔnɔfɛnw cɛmancɛ dɔrɔn .

<div class="container">
  <nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#">Navbar</a>
  </nav>
</div>

Ni minɛn bɛ i ka navbar kɔnɔ, a padding horizontal bɛ bɔ breakpoints (kariyɔrɔw) la minnu ka dɔgɔ ni i ka .navbar-expand{-sm|-md|-lg|-xl}classe kofɔlen ye. O b’a To an tɛ fla Kɛ padding kan kun tɛ min na duguma-jiralanw kan n’i ka navbar (navbar) Dònna.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <div class="container">
    <a class="navbar-brand" href="#">Navbar</a>
  </div>
</nav>

Yɔrɔ bilali

Baara kɛ ni an ka jɔyɔrɔ nafamafɛnw ye walasa ka navbarw bila jɔyɔrɔw la minnu tɛ jɔ. Sugandili kɛ ka bɔ a jɔlen na ka taa sanfɛ, a jɔlen bɛ duguma, walima a bɛ nɔrɔ sanfɛ (a bɛ sɛbɛn ni ɲɛ ye fo ka se sanfɛ, o kɔfɛ a bɛ to yen). Navbar fixes bɛ baara Kɛ ni position: fixed, kɔrɔ ye k’u bɛ sama ka Bɔ DOM ka normal flow la wa u bɛ Se ka CSS ladamulen wajibiya (misali la, ) padding-topkan <body>walasa ka ɲɔgɔndan bali ni fɛn wɛrɛw ye.

aw k' a kɔlɔsi fana ko .sticky-topbaarakɛcogo position: sticky, min tɛ dɛmɛ bɛrɛbɛrɛ navigatɔrɔ bɛɛ kɔnɔ .

<nav class="navbar navbar-light bg-light">
  <a class="navbar-brand" href="#">Default</a>
</nav>
<nav class="navbar fixed-top navbar-light bg-light">
  <a class="navbar-brand" href="#">Fixed top</a>
</nav>
<nav class="navbar fixed-bottom navbar-light bg-light">
  <a class="navbar-brand" href="#">Fixed bottom</a>
</nav>
<nav class="navbar sticky-top navbar-light bg-light">
  <a class="navbar-brand" href="#">Sticky top</a>
</nav>

Sɛbɛnni kɛli

A fara a .navbar-nav-scrollkan .navbar-collapse(walima navbar sub-component wɛrɛ) walasa ka se ka sɛgɛsɛgɛli jɔlen kɛ navbar collapsed kɔnɔkow kɔnɔ minnu bɛ se ka wuli. O cogo la, sɛgɛsɛgɛli bɛ daminɛ ni 75vh(walima 75% ye filɛlikɛyɔrɔ janya la), nka i bɛ se k’o tiɲɛ ni inline walima custom styles ye. Lajɛyɔrɔbaw la ni navbar (navbar) bɛ bonya, kɔnɔkow bɛna jira i n’a fɔ a bɛ kɛ cogo min na navbar default (navbar) kɔnɔ.

Aw k’a kɔlɔsi ko nin kɛcogo in bɛ na ni nafa dɔ ye min bɛ se ka kɛ overflow—ni sigili overflow-y: auto(a wajibiyalen don ka kɔnɔkow lajɛ yan), overflow-xo bɛ bɛn auto, min bɛna kɔnɔko tilennen dɔw tigɛ.

Nin ye misali ye navbar min bɛ baara kɛ .navbar-nav-scrollni ni style="max-height: 100px;", ni margin utilities dɔw ye walasa ka yɔrɔjan ɲuman sɔrɔ.

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar scroll</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarScroll">
    <ul class="navbar-nav mr-auto my-2 my-lg-0 navbar-nav-scroll" style="max-height: 100px;">
      <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 dropdown">
        <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
          Link
        </a>
        <ul class="dropdown-menu">
          <li><a class="dropdown-item" href="#">Action</a></li>
          <li><a class="dropdown-item" href="#">Another action</a></li>
          <li><hr class="dropdown-divider"></li>
          <li><a class="dropdown-item" href="#">Something else here</a></li>
        </ul>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled">Link</a>
      </li>
    </ul>
    <form class="d-flex">
      <input class="form-control mr-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success" type="submit">Search</button>
    </form>
  </div>
</nav>

Taamacogo minnu bɛ jaabi di

Navbarw bɛ se ka baara kɛ ni .navbar-toggler, .navbar-collapse, ani .navbar-expand{-sm|-md|-lg|-xl}kalanw ye walasa k’a dɔn u kɔnɔkow bɛ bin tuma min na butɔni dɔ kɔfɛ. Ni i farala nafamafɛn wɛrɛw kan, i bɛ se k’a sugandi nɔgɔya la waati min na i bɛna fɛn kɛrɛnkɛrɛnnenw jira walima k’u dogo.

Navbar minnu tɛ bin abada, olu bɛ .navbar-expandkalasi fara navbar kan. Navbar minnu bɛ bin tuma bɛɛ, aw kana .navbar-expandkalasi si fara a kan.

Toggler ye

Navbar togglers bɛ Labɛn numan fɛ ka da a kan, nka n’u tugura balimakɛ-yɔrɔ dɔ kɔ i n’a fɔ a .navbar-brand, u bɛ Labɛn u yɛrɛma ka Taa kinin fɛ kosɛbɛ. Ni i ye i ka taamasiyɛn kɔsegin, o bɛna toggler bilali kɔsegin. Toggle cogoya wɛrɛw misaliw bɛ duguma.

Ni a ma .navbar-brandjira kariyɔrɔ fitinin na:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
    <a class="navbar-brand" href="#">Hidden brand</a>
    <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
      <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">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

Ni marka tɔgɔ jiralen bɛ kinin fɛ ani toggler bɛ kinin fɛ:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</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 mr-auto mt-2 mt-lg-0">
      <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">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

Ni toggler bɛ kinin fɛ ani brand tɔgɔ kinin fɛ:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="#">Navbar</a>

  <div class="collapse navbar-collapse" id="navbarTogglerDemo03">
    <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
      <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">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

Kɛnɛyako kɔnɔkow

Tuma dɔw la i b' a fɛ ka baara kɛ ni collapse plugin ye walasa ka minɛn dɔ daminɛ kɔnɔkow kama minnu sigilen bɛ sigicogo la .navbar. Bari an ka plugin bɛ baara Kɛ ni idani data-targetmatching ye, o bɛ Kɛ nɔgɔya la!

<div class="fixed-top">
  <div class="collapse" id="navbarToggleExternalContent">
    <div class="bg-dark p-4">
      <h5 class="text-white h4">Collapsed content</h5>
      <span class="text-muted">Toggleable via the navbar brand.</span>
    </div>
  </div>
  <nav class="navbar navbar-dark bg-dark">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
  </nav>
</div>

N’i ​​y’o Kɛ, an b’a Fɔ ko i bɛ JavaScript wɛrɛw Dòn a la walasa ka sinsinnan Lase porogaramu fɛ ka Taa minɛn kɔnɔ n’a Dabɔra. N’o tɛ, a ka c’a la, klaviyeti baarakɛlaw ni dɛmɛni fɛɛrɛw baarakɛlaw bɛna gɛlɛya sɔrɔ ka kunnafoni kura jiralenw sɔrɔ - kɛrɛnkɛrɛnnenya la ni minɛn min dabɔra, o bɛ na ka kɔn toggler ɲɛ sɛbɛn in jɔcogo la. An b’a Fɔ fana ko i k’a Jira ko toggler (toggler) bɛ ni aria-controlsattribut (fɛn) ye, k’a Jira idko kɔnɔkow minɛn kɔnɔ. Teori la, o b’a to dɛmɛni fɛɛrɛbɔlaw bɛ se ka pan ka bɔ toggler la ka taa a bɛ minɛn min mara–nka dɛmɛ min bɛ o la sisan, o bɛ kɛ fɛn ye min tɛ fɛn caman kɛ.