Source

Nri achịcha

Gosipụta ọnọdụ ibe dị ugbu a n'ime usoro ịnyagharị na-agbakwunye ndị nkewa na-akpaghị aka site na CSS.

Ọmụmaatụ

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

Ịgbanwe ihe nkesa

A na-agbakwunye ndị nkewa na-akpaghị aka na CSS site ::beforena content. Enwere ike ịgbanwe ha site n'ịgbanwe $breadcrumb-divider. Ọrụ ntinye aka dị mkpa iji mepụta nhota ndị dị n'akụkụ eriri, yabụ ọ bụrụ na ịchọrọ >dị ka onye nkesa, ịnwere ike iji nke a:

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

Ọ dịkwa ike iji akara SVG agbakwunyere base64 :

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

Enwere ike wepu ihe nkesa site na ịtọ $breadcrumb-dividerna none:

$breadcrumb-divider: none;

Nnweta

Ebe ọ bụ na achịcha achịcha na-enye igodo, ọ dị mma ịgbakwunye akara nwere uru dị ka aria-label="breadcrumb"ịkọwapụta ụdị igodo enyere na <nav>mmewere, yana itinye ihe aria-current="page"na ihe ikpeazụ nke setịpụrụ iji gosi na ọ na-anọchi anya ibe dị ugbu a.

Maka ozi ndị ọzọ, hụ Omume edemede WAI-ARIA maka ụkpụrụ achịcha achịcha .