Kombisa nhundzu
Hi ku hatlisa ni hi ku hlamula cinca nkoka wa nkombiso wa swiphemu ni swin’wana hi switirhisiwa swa hina swa nkombiso. Ku katsa na nseketelo wa yin’wana ya mimpimo leyi tolovelekeke swinene, kun’we ni swin’wana leswi engetelekeke swo lawula nkombiso loko u kandziyisa.
Cinca nkoka wa display
nhundzu hi titlilasi ta hina ta vukorhokeri bya nkombiso leti hlamulaka. Hi seketela hi xikongomelo ntsena ntlawa lowutsongo wa mimpimo hinkwayo leyi kotekaka ya display
. Titlilasi ti nga hlanganisiwa eka switandzhaku swo hambana-hambana hilaha u lavaka hakona.
Kombisa titlilasi ta vukorhokeri leti tirhaka eka ti breakpoint hinkwato , ku suka eka xs
ku ya eka xl
, a ti na xifunengeto xa breakpoint eka tona. Leswi swi vangiwa hikuva titlilasi teto ti tirhisiwa ku suka min-width: 0;
na le henhla, naswona xisweswo a ti bohiwi hi xivutiso xa vuhangalasi bya mahungu. Hambiswiritano, swiphemu leswi saleke swa ku tshoveka swi katsa xifunengeto xa ku tshoveka.
Hi ndlela yaleyo, titlilasi ti thyiwile mavito hi ku tirhisa xivumbeko lexi nge:
.d-{value}
swaxs
.d-{breakpoint}-{value}
hikuvasm
,md
,lg
, naxl
.
Laha nkoka wu nga wun’wana wa:
none
inline
inline-block
block
table
table-cell
table-row
flex
inline-flex
Swivutiso swa midiya swi khumba ku anama ka xikirini hi breakpoint leyi nyikiweke kumbe ku tlula . Hi xikombiso, .d-lg-none
tisete display: none;
eka havumbirhi bya tona lg
ni le ka xl
swikirini.
Ku kuma nhluvukiso wo hatlisa lowu nga ni xinghana eka tiselfoni, tirhisa titlilasi ta nkombiso leti hlamulaka to kombisa ni ku tumbeta swiaki hi xitirhisiwa. Papalata ku endla tivhidiyo leti hambaneke hi ku helela ta sayiti yin’we, ematshan’weni ya sweswo fihla elemente hi ndlela leyi hlamulaka eka sayizi yin’wana ni yin’wana ya xikirini.
Ku fihla swiaki ntsena tirhisa .d-none
tlilasi kumbe yin’wana ya .d-{sm,md,lg,xl}-none
titlilasi eka ku hambana kwihi na kwihi ka xikirini loku hlamulaka.
Ku kombisa elemente ntsena eka nkarhi lowu nyikiweke wa tisayizi ta xikirini u nga hlanganisa .d-*-none
tlilasi yin’we na .d-*-*
tlilasi, xikombiso .d-none .d-md-block .d-xl-none
u ta fihla elemente eka tisayizi hinkwato ta xikirini handle ka eka switirhisiwa swa le xikarhi na leswikulu.
Vukulu bya Xikirini | Tlilasi |
---|---|
Ku fihliwile eka hinkwavo | .d-none |
Ku fihliwile ntsena eka xs | .d-none .d-sm-block |
Ku fihliwile ntsena eka sm | .d-sm-none .d-md-block |
Ku fihliwile ntsena eka md | .d-md-none .d-lg-block |
Ku fihliwile ntsena eka lg | .d-lg-none .d-xl-block |
Ku fihliwile ntsena eka xl | .d-xl-none |
Swi vonaka eka hinkwaswo | .d-block |
Swi vonaka ntsena eka xs | .d-block .d-sm-none |
Swi vonaka ntsena eka sm | .d-none .d-sm-block .d-md-none |
Swi vonaka ntsena eka md | .d-none .d-md-block .d-lg-none |
Swi vonaka ntsena eka lg | .d-none .d-lg-block .d-xl-none |
Swi vonaka ntsena eka xl | .d-none .d-xl-block |
Cinca display
nkoka wa swiaki loko u kandziyisa hi titlilasi ta hina ta vukorhokeri bya nkombiso wo gandlisa. Ku katsa na nseketelo wa display
mimpimanyeto leyi fanaka na .d-*
switirhisiwa swa hina leswi hlamulaka.
.d-print-none
.d-print-inline
.d-print-inline-block
.d-print-block
.d-print-table
.d-print-table-row
.d-print-table-cell
.d-print-flex
.d-print-inline-flex
Titlilasi to gandlisa ni to kombisa ti nga hlanganisiwa.