Source

Bohobe

Hlahisa sebaka sa leqephe la hajoale ka har'a sehlopha sa maemo a marang-rang se eketsang likarohano ka CSS.

Mohlala

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item active" aria-current="page">Home</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item active" aria-current="page">Library</li>
  </ol>
</nav>

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item"><a href="#">Library</a></li>
    <li class="breadcrumb-item active" aria-current="page">Data</li>
  </ol>
</nav>

Ho fetola karohano

Li arola li kenyelletsoa ka bo eona ho CSS ka ::beforele content. Li ka fetoloa ka ho fetoha $breadcrumb-divider. Mosebetsi oa quote oa hlokahala ho hlahisa mantsoe a qotsitsoeng ho potoloha khoele, kahoo haeba u batla >ho ba seperator, u ka sebelisa sena:

$breadcrumb-divider: quote(">");

Hape hoa khonahala ho sebelisa lets'oao le kentsoeng la base64 la SVG :

$breadcrumb-divider: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPjxwYXRoIGQ9Ik0yLjUgMEwxIDEuNSAzLjUgNCAxIDYuNSAyLjUgOGw0LTQtNC00eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+);

Searohanyi se ka tlosoa ka ho seta $breadcrumb-dividerho none:

$breadcrumb-divider: none;

Ho fihlella

Kaha li-breadcrumbs li fana ka mokhoa oa ho tsamaea, ke khopolo e ntle ho kenya letšoao le nang le moelelo joalo ka aria-label="breadcrumb"ho hlalosa mofuta oa ho tsamaea o fanoeng karolong <nav>, hammoho le ho sebelisa ntho aria-current="page"ea ho qetela ea sete ho bontša hore e emela leqephe la hona joale.

Bakeng sa lintlha tse ling, sheba Mekhoa ea Bongoli ea WAI-ARIA bakeng sa mokhoa oa breadcrumb .