Isikhala
I-Bootstrap ifaka phakathi uhla olubanzi lwemajini esabelayo yesandla esifushane kanye namakilasi ensiza ye-padding ukuze kulungiswe ukubukeka kwento.
Nikeza okusabelayo okunobungane margin
noma padding
amanani kusici noma isethi engaphansi yezinhlangothi zayo ezinezigaba ezimfishane. Kufaka phakathi ukusekelwa kwezakhiwo ezingazodwana, zonke izakhiwo, kanye nezakhiwo eziqondile nezivundlile. Amakilasi akhiwe kusuka kumephu ye-Sass ezenzakalelayo ukusuka .25rem
ku- 3rem
.
Izinsiza zokuhlukanisa ezisebenza kuwo wonke ama-breakpoint, ukusuka xs
kuye ukuya ku- xl
, azinaso isifinyezo se-breakpoint kuzo. Lokhu kungenxa yokuthi lawo makilasi asetshenziswa ukusuka min-width: 0
naphezulu, futhi ngaleyo ndlela awaboshiwe umbuzo wemidiya. Ama-breakpoint asele, nokho, afaka isifinyezo se-breakpoint.
Amakilasi aqanjwe kusetshenziswa ifomethi {property}{sides}-{size}
yokuthi xs
, , , kanye .{property}{sides}-{breakpoint}-{size}
sm
md
lg
xl
Lapho impahla ingenye ye:
m
- amakilasi asethiwemargin
p
- amakilasi asethiwepadding
Lapho izinhlangothi zingenye yalezi:
t
- amakilasi abekamargin-top
nomapadding-top
b
- amakilasi abekamargin-bottom
nomapadding-bottom
l
- amakilasi abekamargin-left
nomapadding-left
r
- amakilasi abekamargin-right
nomapadding-right
x
- amakilasi asetha kokubili*-left
futhi*-right
y
- amakilasi asetha kokubili*-top
futhi*-bottom
- blank - amakilasi asetha i-a
margin
nomapadding
kuzo zonke izinhlangothi ezi-4 zesici
Lapho usayizi ungomunye walokhu:
0
- amakilasi asusamargin
nomapadding
ngokuyibeka kuwo0
1
- (ngokuzenzakalelayo) kumakilasi asetha i-margin
nomapadding
ku$spacer * .25
2
- (ngokuzenzakalelayo) kumakilasi asetha i-margin
nomapadding
ku$spacer * .5
3
- (ngokuzenzakalelayo) kumakilasi asetha i-margin
nomapadding
ku$spacer
4
- (ngokuzenzakalelayo) kumakilasi asetha i-margin
nomapadding
ku$spacer * 1.5
5
- (ngokuzenzakalelayo) kumakilasi asetha i-margin
nomapadding
ku$spacer * 3
auto
- kumakilasi asetha okuthimargin
okuzenzakalelayo
(Ungangeza osayizi abengeziwe ngokungeza okufakiwe $spacers
kokuhluka kwemephu ye-Sass.)
Nazi ezinye izibonelo ezimele lawa makilasi:
Ukwengeza, i-Bootstrap iphinde ihlanganise .mx-auto
nekilasi lokumisa phakathi nendawo okuqukethwe kwezinga lebhulokhi enobubanzi obungashintshi—okungukuthi, okuqukethwe okunayo display: block
kanye width
nesethi—ngokusetha amamajini avundlile ukuze auto
.