in English

Akara akara

Tọkasi ipo oju-iwe lọwọlọwọ laarin awọn ilana lilọ kiri ti o ṣafikun awọn oluyapa laifọwọyi nipasẹ CSS.

Apeere

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

Yiyipada awọn separator

Awọn oluyapa ti wa ni afikun laifọwọyi ni CSS nipasẹ ::beforeati content. Wọn le yipada nipasẹ iyipada $breadcrumb-divider. Iṣẹ agbasọ ni a nilo lati ṣe agbekalẹ awọn agbasọ ni ayika okun kan, nitorinaa ti o ba fẹ >bi oluyapa, o le lo eyi:

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

O tun ṣee ṣe lati lo aami SVG ti ipilẹ64 ti a fi sii :

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

O le yọkuro kuro nipa eto $breadcrumb-dividersi none:

$breadcrumb-divider: none;

Wiwọle

Níwọ̀n bí búrẹ́dì ń pèsè ìṣíkiri kan, ó jẹ́ ìmọ̀ràn tí ó dára láti ṣàfikún aami kan tí ó nítumọ̀ gẹ́gẹ́ bí aria-label="breadcrumb"láti ṣàpéjúwe irú ìṣàwárí tí a pèsè nínú <nav>èròjà náà, àti fífi ohun kan aria-current="page"sí ohun kan tí ó gbẹ̀yìn ti àgbékalẹ̀ láti fi hàn pé ó dúró fún ojú-ewé tí ń lọ lọ́wọ́.

Fun alaye diẹ sii, wo ARIA Awọn adaṣe Iṣeduro Itọnisọna Ilana breadcrumb .