Tīpoka ki te ihirangi matua Tīpoka ki te whakaterenga tuhinga
in English

Te kongakonga taro

Tohua te waahi o te wharangi o naianei i roto i te arowhai whakaterenga ka taapiri aunoa i nga wehewehe ma te CSS.

Tauira

Whakamahia he rarangi raupapa, he rarangi kore ranei me nga tuemi rarangi hono hei hanga i tetahi kongakonga parāoa iti. Whakamahia a maatau taputapu ki te taapiri i nga momo taapiri e hiahiatia ana.

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

Kaiwehewehe

Ka taapiri aunoatia nga kaiwehewehe ki te CSS ::beforeme te content. Ka taea te whakarereke ma te whakarereke i tetahi taonga ritenga CSS rohe --bs-breadcrumb-divider, ma te $breadcrumb-dividertaurangi Sass ranei - $breadcrumb-divider-flippedmo tana hoa RTL, ki te hiahiatia. Ka taunoa matou ki ta maatau taurangi Sass, kua tautuhia hei takahuri ki te taonga ritenga. Ma tenei ara, ka whiwhi koe i te wehewehe o te ao ka taea e koe te whakakore me te kore e whakahiato CSS i nga wa katoa.

<nav style="--bs-breadcrumb-divider: '>';" 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>

I te whakarereketanga ma te Sass, ka hiahiatia te mahi kii hei whakaputa i nga korukī huri noa i te aho. Hei tauira, ma >te whakamahi hei kaiwehewehe, ka taea e koe te whakamahi i tenei:

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

Ka taea hoki te whakamahi i te ata SVG kua whakauruhia . Hoatuhia ma o maatau taonga ritenga CSS, whakamahi ranei i te taurangi Sass.

<nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E&#34;);" 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>
$breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");

Ka taea hoki te tango i te tautuhinga wehewehe --bs-breadcrumb-divider: '';(ko nga aho kau i roto i nga taonga ritenga CSS ka kiia he uara), ka tautuhi ranei i te taurangi Sass ki $breadcrumb-divider: none;.

<nav style="--bs-breadcrumb-divider: '';" 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>
$breadcrumb-divider: none;

Te urunga

I te mea ko nga kongakonga parāoa he whakaterenga, he pai ki te taapiri i tetahi tapanga whai kiko penei i aria-label="breadcrumb"te whakaahua i te momo whakaterenga e whakaratohia ana i roto i te <nav>huānga, me te tono tohu aria-current="page"ki te mea whakamutunga o te huinga hei tohu mo te wharangi o naianei.

Mo etahi atu korero, tirohia nga Tikanga Kaituhi WAI-ARIA mo te tauira kongakonga taro .

Sass

Taurangi

$breadcrumb-font-size:              null;
$breadcrumb-padding-y:              0;
$breadcrumb-padding-x:              0;
$breadcrumb-item-padding-x:         .5rem;
$breadcrumb-margin-bottom:          1rem;
$breadcrumb-bg:                     null;
$breadcrumb-divider-color:          $gray-600;
$breadcrumb-active-color:           $gray-600;
$breadcrumb-divider:                quote("/");
$breadcrumb-divider-flipped:        $breadcrumb-divider;
$breadcrumb-border-radius:          null;