Erekana umutungo
Byihuse kandi byitondewe guhinduranya agaciro kerekana ibice nibindi byinshi hamwe nibikorwa byacu byerekana. Harimo inkunga kuri bimwe mubisanzwe indangagaciro, kimwe ninyongera zo kugenzura ibyerekanwa mugihe icapiro.
Uburyo ikora
Hindura agaciro display
k'umutungo hamwe n'ibisubizo byacu byingirakamaro byerekana ibyiciro. Dushyigikiye nkana igice gusa cyindangagaciro zose zishoboka kuri display
. Amasomo arashobora guhuzwa kubintu bitandukanye nkuko ubikeneye.
Icyitonderwa
Erekana ibyiciro byingirakamaro bikoreshwa mubice byose , kuva xs
kuri xl
, nta magambo ahinnye muri byo. Ibi ni ukubera ko ayo masomo akoreshwa kuva min-width: 0;
hejuru no hejuru, bityo ntagengwa nikibazo cyitangazamakuru. Ibice bisigaye, ariko, birimo amagambo ahinnye.
Nkibyo, amasomo yitiriwe akoresheje imiterere:
.d-{value}
Kurixs
.d-{breakpoint}-{value}
Kurism
,,, na .md
_lg
xl
Aho agaciro ari kamwe muri:
none
inline
inline-block
block
table
table-cell
table-row
flex
inline-flex
Itangazamakuru ryibibazo bigira ingaruka ubugari bwa ecran hamwe nini yatanzwe . Kurugero, .d-lg-none
shyira display: none;
kuri byombi lg
na xl
ecran.
Ingero
Guhisha ibintu
Kugirango iterambere ryihuta-ryimikorere, koresha ibyiciro byerekana byerekana kwerekana no guhisha ibintu ukoresheje ibikoresho. Irinde gukora verisiyo zitandukanye rwose zurubuga rumwe, ahubwo uhishe ibintu witonze kuri buri bunini bwa ecran.
Guhisha ibintu gusa koresha urwego .d-none
cyangwa rimwe .d-{sm,md,lg,xl}-none
mubyiciro kugirango bisubizwe neza.
Kugirango werekane ikintu gusa kumurongo watanzwe wubunini bwa ecran urashobora guhuza icyiciro kimwe .d-*-none
nicyiciro .d-*-*
, kurugero .d-none .d-md-block .d-xl-none
ruzahisha element kubunini bwa ecran yose usibye kubikoresho biciriritse kandi binini.
Ingano ya Mugaragaza | Icyiciro |
---|---|
Hihishe kuri bose | .d-none |
Byihishe kuri xs gusa | .d-none .d-sm-block |
Byihishe kuri sm gusa | .d-sm-none .d-md-block |
Hihishe kuri md gusa | .d-md-none .d-lg-block |
Byihishe kuri lg gusa | .d-lg-none .d-xl-block |
Hihishe kuri xl gusa | .d-xl-none |
Biboneka kuri bose | .d-block |
Biboneka gusa kuri xs | .d-block .d-sm-none |
Biboneka gusa kuri sm | .d-none .d-sm-block .d-md-none |
Biboneka gusa kuri md | .d-none .d-md-block .d-lg-none |
Biboneka gusa kuri lg | .d-none .d-lg-block .d-xl-none |
Biboneka gusa kuri xl | .d-none .d-xl-block |
Erekana mu icapiro
Hindura display
agaciro k'ibintu mugihe cyo gucapa hamwe nicapiro ryacu ryerekana ibyiciro byingirakamaro. Harimo inkunga kubintu bimwe display
nkibikorwa byacu .d-*
byitabira.
.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
Ibyiciro byo gucapa no kwerekana ibyiciro birashobora guhuzwa.