Mipata
Bootstrap imaphatikizapo magawo angapo omvera amfupi komanso makalasi othandizira kuti asinthe mawonekedwe a chinthu.
Perekani zovomerezeka margin
kapena padding
zofunikira ku chinthu kapena kagawo kakang'ono ka mbali zake ndi makalasi achidule. Zimaphatikizapo chithandizo cha katundu aliyense payekha, katundu yense, ndi zowoneka ndi zopingasa. Maphunziro amapangidwa kuchokera pamapu okhazikika a Sass kuyambira .25rem
mpaka 3rem
.
Zida zopangira masitayilo zomwe zimagwira ntchito pama breakpoints onse, kuyambira xs
mpaka xl
, zilibe chidule cha breakpoint mwa iwo. Izi ndichifukwa choti makalasiwo amagwiritsidwa ntchito kuchokera min-width: 0
ndi mmwamba, motero samamangidwa ndi funso lazama media. Zotsalira zotsalira, komabe, zikuphatikiza chidule cha breakpoint.
Maphunzirowa amatchulidwa pogwiritsa ntchito mawonekedwe {property}{sides}-{size}
a xs
, , , ndi .{property}{sides}-{breakpoint}-{size}
sm
md
lg
xl
Kumene katundu ndi imodzi mwa:
m
- kwa makalasi omwe akhazikitsidwamargin
p
- kwa makalasi omwe akhazikitsidwapadding
Kumene mbali ndi imodzi mwa:
t
- kwa makalasi omwe amakhazikitsamargin-top
kapenapadding-top
b
- kwa makalasi omwe amakhazikitsamargin-bottom
kapenapadding-bottom
l
- kwa makalasi omwe amakhazikitsamargin-left
kapenapadding-left
r
- kwa makalasi omwe amakhazikitsamargin-right
kapenapadding-right
x
- kwa makalasi omwe amakhazikitsa onse*-left
ndi*-right
y
- kwa makalasi omwe amakhazikitsa onse*-top
ndi*-bottom
- opanda kanthu - m'makalasi omwe amayika mbali
margin
zonsepadding
zinayi za chinthucho
Kumene kukula ndi chimodzi mwa:
0
- m'makalasi omwe amachotsamargin
kapenapadding
kuyiyika0
1
- (mwachisawawa) pamakalasi omwe amakhazikitsamargin
kapenapadding
ku$spacer * .25
2
- (mwachisawawa) pamakalasi omwe amakhazikitsamargin
kapenapadding
ku$spacer * .5
3
- (mwachisawawa) pamakalasi omwe amakhazikitsamargin
kapenapadding
ku$spacer
4
- (mwachisawawa) pamakalasi omwe amakhazikitsamargin
kapenapadding
ku$spacer * 1.5
5
- (mwachisawawa) pamakalasi omwe amakhazikitsamargin
kapenapadding
ku$spacer * 3
auto
- pamakalasi omwe amakhazikitsamargin
auto
(Mutha kuwonjezera kukula kwake powonjezera zolemba $spacers
pamapu a Sass.)
Nazi zitsanzo zoimira makalasi awa:
Kuphatikiza apo, Bootstrap imaphatikizansopo .mx-auto
kalasi yokhazikika yopingasa mulingo wa block - ndiye kuti, zomwe zili display: block
ndi width
seti - pokhazikitsa malire opingasa mpaka auto
.