in English

Breadcrumb

Onetsani komwe tsamba lapano lili mkati mwautsogoleri wapanyanja womwe umangowonjezera olekanitsa kudzera pa CSS.

Chitsanzo

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

Kusintha olekanitsa

Olekanitsa amawonjezedwa mu CSS kudzera ::beforendi content. Akhoza kusinthidwa mwa kusintha $breadcrumb-divider. Ntchito ya quote ndiyofunikira kuti mupange mawu ozungulira chingwe, kotero ngati mukufuna >monga olekanitsa, mutha kugwiritsa ntchito izi:

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

Ndikothekanso kugwiritsa ntchito chizindikiro cha SVG chophatikizidwa ndi base64 :

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

Cholekanitsa chikhoza kuchotsedwa pokhazikitsa $breadcrumb-dividerku none:

$breadcrumb-divider: none;

Kufikika

Popeza breadcrumbs amapereka navigation, ndi bwino kuwonjezera chizindikiro chatanthauzo monga aria-label="breadcrumb"kufotokoza mtundu wa navigation woperekedwa mu <nav>element, komanso kugwiritsa ntchito aria-current="page"chinthu chomaliza cha seti kusonyeza kuti ikuyimira tsamba panopa.

Kuti mudziwe zambiri, onani ARIA Authoring Practices Guide pattern breadcrumb .