Z-index
Kunyange isiri chikamu cheBootstrap's grid system, z-index inotora chikamu chakakosha mumabatiro ezvikamu zvedu uye kupindirana kune mumwe nemumwe.
Zvinoverengeka zveBootstrap zvinoshandisa z-index
, iyo CSS pfuma inobatsira kudzora marongero nekupa yechitatu axis kuronga zvirimo. Isu tinoshandisa yakasarudzika z-index chiyero muBootstrap iyo yakagadzirirwa kunyatso kurongedza kufamba, matipi ezvishandiso uye popovers, modal, nezvimwe.
Hunhu hwepamusoro uhwu hunotanga panhamba isingaverengeki, yakakwirira uye yakananga zvakakwana kudzivirira kunetsana. Tinoda yakajairwa seti yeizvi mukati mezvikamu zvedu zvakaturikidzana-zvishandiso, popovers, navbars, dropdowns, modals-kuti tigone kuenderana mune maitiro. Hapana chikonzero chatingadai tisina kushandisa 100
+ kana 500
+.
Hatikurudzire kugadziridzwa kwetsika dzemunhu idzi; kana ukachinja imwe chete, ungangoda kuichinja ese.
$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;
Kubata mabhodha anodhumhana mukati mezvikamu (semu, mabhatani nezvinoiswa mumapoka ekuisa), tinoshandisa yakaderera manhamba z-index
ma values e 1
, 2
, uye 3
kune default , hover, uye inoshanda matunhu. Pane hover/focus/active, tinounza chimwe chinhu kumberi chine z-index
kukosha kwepamusoro kuratidza muganho wavo pamusoro pezvinhu zvehama.