Source

Breadcrumb

Ratidza nzvimbo yepeji iripo mukati mehurongwa hwekufambisa hunowedzera vapatsanuri kuburikidza neCSS.

Muenzaniso

<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>

Kushandura separator

Zviparadzanisa zvinowedzerwa otomatiki muCSS kuburikidza ::beforeuye content. Vanogona kuchinjwa nekuchinja $breadcrumb-divider. Iyo quote function inodiwa kugadzira makotesheni akatenderedza tambo, saka kana iwe uchida >se seperator, unogona kushandisa izvi:

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

Izvo zvakare zvinogoneka kushandisa base64 yakamisikidzwa SVG icon :

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

Separator inogona kubviswa nekuisa $breadcrumb-dividerku none:

$breadcrumb-divider: none;

Accessibility

Sezvo breadcrumbs achipa kufamba, ipfungwa yakanaka kuwedzera chirevo chine musoro sekutsanangura aria-label="breadcrumb"rudzi rwekufambisa rwakapihwa <nav>muchinhu, pamwe nekushandisa aria-current="page"kune yekupedzisira chinhu cheseti kuratidza kuti inomiririra peji razvino.

Kuti uwane rumwe ruzivo, ona iyo WAI-ARIA Kunyorera Maitiro eiyo breadcrumb pateni .