Z-isalathisi
Ngelixa ingeyonxalenye yenkqubo yegridi yeBootstrap, izalathi ze-z zidlala indima ebalulekileyo kwindlela izinto zethu ezingaphezulu kwaye zinxibelelana ngayo.
Amacandelo amaninzi eBootstrap asebenzisa z-index
, ipropati yeCSS enceda ukulawula uyilo ngokubonelela nge-axis yesithathu ukulungiselela umxholo. Sisebenzisa isikali sesalathiso sika-z esingagqibekanga kwiBootstrap eyilelwe ukuba ingamaleko ngokufanelekileyo, iingcebiso zesixhobo kunye neepopovers, iimodyuli, kunye nokunye.
La maxabiso aphezulu aqala kwinani elingenasizathu, eliphezulu kwaye lithe ngqo ngokwaneleyo ukuphepha iingxabano. Sifuna iseti esemgangathweni yazo zonke iinxalenye zethu ezineleyile-iingcebiso zezixhobo, iipopovers, ii-navbar, ukwehla, iimodyuli-ukuze sikwazi ukungaguquguquki kwindlela yokuziphatha. Akukho sizathu singakhange sisebenzise 100
+ okanye 500
+.
Asikukhuthazi ukwenza ezi nqobo zobuntu; ukuba utshintshe enye, kuya kufuneka utshintshe zonke.
$zindex-dropdown: 1000;
$zindex-sticky: 1020;
$zindex-fixed: 1030;
$zindex-offcanvas-backdrop: 1040;
$zindex-offcanvas: 1045;
$zindex-modal-backdrop: 1050;
$zindex-modal: 1055;
$zindex-popover: 1070;
$zindex-tooltip: 1080;
$zindex-toast: 1090;
Ukujongana nemida ethelelanayo ngaphakathi kwezixhobo (umzekelo, amaqhosha kunye negalelo kumaqela egalelo), sisebenzisa amanani asezantsi amadijithi omnye z-index
we 1
, 2
, kunye 3
nokungagqibekanga, i-hover, kunye neemeko ezisebenzayo. Kwi-hover/focus/esebenzayo, sizisa into ethile ngaphambili z-index
enexabiso eliphezulu ukubonisa umda wabo phezu kwezinto ezizalanayo.