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.
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 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-divider
na none
:
$breadcrumb-divider: none;
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 .