Bontša thepa
Fetosa boleng ba ponts'o ea likarolo le tse ling ka potlako le ka mokhoa o bonolo ka lisebelisoa tsa rona tsa ponts'o. E kenyelletsa tšehetso bakeng sa tse ling tsa litekanyetso tse tloaelehileng, hammoho le tse ling tsa tlatsetso bakeng sa ho laola ponts'o ha o hatisa.
Fetola boleng ba display
thepa ka litlelase tsa rona tse arabelang. Re tšehetsa ka boomo feela karoloana ea boleng bohle bo ka khonehang bakeng sa display
. Lihlopha li ka kopanngoa bakeng sa liphello tse fapaneng kamoo u hlokang kateng.
Bontša litlelase tsa lisebelisoa tse sebetsang ho li -breakpoints tsohle , ho tloha xs
ho ea ho xl
, ha li na khutsufatso ea li-breakpoint ho tsona. Lebaka ke hobane litlelase tseo li sebelisoa ho tloha min-width: 0;
holimo le holimo, 'me ka hona ha li tlangoe ke potso ea media. Li-breakpoints tse setseng, leha ho le joalo, li kenyelletsa khutsufatso ea breakpoint.
Ka hona, litlelase li rehiloe ho sebelisoa sebopeho:
.d-{value}
bakeng saxs
.d-{breakpoint}-{value}
bakeng sasm
,md
,lg
, lexl
.
Moo boleng e leng e 'ngoe ea:
none
inline
inline-block
block
table
table-cell
table-row
flex
inline-flex
Lipotso tsa mecha ea litaba li ama bophara ba skrine ka sebaka se fanoeng kapa se seholoanyane . Ka mohlala, .d-lg-none
e beha display: none;
ka bobeli lg
le xl
skrineng.
Bakeng sa nts'etsopele e potlakileng ea ho sebelisa mehala, sebelisa litlelase tse arabelang ho bonts'a le ho pata likarolo ka sesebelisoa. Qoba ho theha mefuta e fapaneng ka ho felletseng ea sebaka se le seng, ho fapana le moo pata karolo ka nepo bakeng sa boholo ba skrini ka seng.
Ho pata likarolo sebelisa feela .d-none
sehlopha kapa e 'ngoe ea .d-{sm,md,lg,xl}-none
litlelase bakeng sa phapang efe kapa efe e arabelang skrineng.
Ho bonts'a ntho ka nako e itseng feela ea boholo ba skrine o ka kopanya .d-*-none
sehlopha se le seng le .d-*-*
sehlopha, mohlala, o .d-none .d-md-block .d-xl-none
tla pata ntho ea boholo ba skrine ntle le lisebelisoa tse mahareng le tse kholo.
Boholo ba skrine | Sehlopha |
---|---|
E patiloeng ho tsohle | .d-none |
E patiloe feela ho xs | .d-none .d-sm-block |
E patiloe feela ka sm | .d-sm-none .d-md-block |
E patiloe feela ho md | .d-md-none .d-lg-block |
E patiloe feela ho lg | .d-lg-none .d-xl-block |
E patiloe feela ho xl | .d-xl-none |
E bonahala ho bohle | .d-block |
E bonahala feela ho xs | .d-block .d-sm-none |
E bonahala feela ka sm | .d-none .d-sm-block .d-md-none |
E bonahala feela ho md | .d-none .d-md-block .d-lg-none |
E bonahala feela ho lg | .d-none .d-lg-block .d-xl-none |
E bonahala feela ho xl | .d-none .d-xl-block |
Fetola display
boleng ba lielemente ha u hatisa ka litlelase tsa rona tsa lisebelisoa tsa ho hatisa. E kenyelletsa tšehetso ea boleng bo ts'oanang le display
lits'ebeletso tsa rona tse arabelang .d-*
.
.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
Litlelase tsa khatiso le lipontšo li ka kopanngoa.