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 ::before
na content
. Enwere ike ịgbanwe ha site n'ịgbanwe $breadcrumb-divider
. Ọrụ ntinye aka dị mkpa iji mepụta nrụtụ aka gburugburu eriri, yabụ ọ bụrụ na ịchọrọ >
dị ka onye nkewa, ị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-divider
na 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ọ, lee ARIA Ntuziaka Omume Ntuziaka breadcrumb .