Index ya Z
Atako ezali eteni ya système ya grille ya Bootstrap te, ba z-indexs ezali na eteni ya ntina na lolenge nini ba composants na biso ezo superposer mpe ezo interagir moko na mosusu.
Ba composants ya Bootstrap ebele basalelaka z-index
, propriété CSS oyo esalisaka na contrôle ya layout na kopesaka axe ya misato pona ko organiser contenus. Tosalelaka échelle ya z-index par défaut na Bootstrap oyo esalemi mpo na ko coucher malamu navigation, ba toli ya bisaleli mpe ba popovers, ba modals, mpe mingi mosusu.
Ba valeurs oyo ya likolo ebandi na nombre arbitraire, ya likolo pe spécifique suffisamment pona ko éviter na ndenge ya malamu ba conflits. Tozali na mposa ya ensemble standard ya oyo na kati ya ba composants na biso ya couché —ba tolips ya bisaleli, ba popovers, ba navbars, ba dropdowns, ba modals —mpo ete tokoka kozala na boyokani na ndenge ya malamu na bizaleli. Ezali na ntina moko te oyo tokokaki kosalela 100
+ to 500
+ te.
Tolendisaka te kosala personnalisation ya ba valeurs individuelles wana; soki obongoli moko, mbala mosusu osengeli kobongola yango nyonso.
$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;
Mpo na kosimba bandelo oyo ezali kozipa na kati ya biloko (ndakisa, ba boutons mpe ba entrées na ba groupes ya entrée), tosalelaka ba z-index
valeurs ya chiffre moko ya nse ya 1
, 2
, mpe 3
mpo na ba états par défaut, hover, mpe active. Na hover/focus/active, to memaka élément moko particulier na esika ya liboso na z-index
valeur ya likolo pona kolakisa frontière na bango likolo ya ba éléments frères.