Bootstrap grid mienzaniso
Basic grid marongero kuti iwe ujairane nekuvaka mukati meBootstrap grid system.
Mumienzaniso iyi .themed-grid-col
kirasi inowedzerwa kumakoramu kuwedzera mamwe madingindira. Iyi haisi kirasi inowanikwa muBootstrap nekukasira.
Matanho mashanu egridi
Kune matavi mashanu kuBootstrap grid system, imwe yega yega yemhando yemidziyo yatinotsigira. Imwe neimwe tier inotanga padiki yekuona saizi uye inoshanda otomatiki kumidziyo mikuru kunze kwekunge yakadhindwa.
Makoramu matatu akaenzana
Tora makoramu matatu akaenzana-akaenzana kutangira pamatafura uye kukwira kumatafura makuru . Pane nharembozha, mahwendefa uye pazasi, makoramu anozomira otomatiki.
Mamwe makoramu matatu akaenzana
Nekushandisa .row-cols-*
makirasi, unogona nyore kugadzira grid ine makoramu akaenzana.
.col
mwana we
.row-cols-md-3
.col
mwana we
.row-cols-md-3
.col
mwana we
.row-cols-md-3
Makoramu matatu asina kuenzana
Tora makoramu matatu kutanga pamatafura uye kukwira kune mahombe desktops ehupamhi hwakasiyana. Rangarira, grid columns dzinofanira kuwedzera kusvika gumi nembiri kune imwechete yakachinjika block. Kupfuura izvozvo, uye makoramu anotanga kurongedza zvisinei nenzvimbo yekutarisa.
Makoramu maviri
Tora makoramu maviri kutanga pamatafura uye kukwira kumatafura makuru .
Upamhi hwakazara, koramu imwe chete
Hapana makirasi egridi anodiwa kune yakazara-hupamhi zvinhu.
Makoramu maviri ane makoramu maviri ane madendere
Maererano nezvinyorwa, kugadzira dendere kuri nyore-ingoisa mutsara wemakoramu mukati mechikamu chiripo. Izvi zvinokupa makoramu maviri kutanga pamatafura uye kukwira kune mahombe desktops , aine mamwe maviri (akaenzana upamhi) mukati meiyo huru column.
Pamasaizi emudziyo wenhare, mahwendefa uye pasi, makoramu aya nemakoramu awo akaiswa madendere achaungana.
Yakasanganiswa: nhare uye desktop
Iyo Bootstrap v5 grid system ine matavi matanhatu emakirasi: xs (yakawedzera diki, iyi kirasi infix haisi kushandiswa), sm (diki), md (pakati), lg (huru), xl (x-hombe), uye xxl (xx -guru). Iwe unogona kushandisa chero musanganiswa weaya makirasi kugadzira mamwe ane simba uye anochinjika marongero.
Imwe neimwe nhanho yemakirasi inokwira kumusoro, zvichireva kuti kana ukaronga pakuisa hupamhi hwakafanana hwemd, lg, xl uye xxl, unongoda kutsanangura md.
Yakasanganiswa: nhare, piritsi, uye desktop
Gutters
Nemakirasi .gx-*
, mabheji akatwasuka anogona kugadziriswa.
.col
nemigero
.gx-4
_
.col
nemigero
.gx-4
_
.col
nemigero
.gx-4
_
.col
nemigero
.gx-4
_
.col
nemigero
.gx-4
_
.col
nemigero
.gx-4
_
Shandisa .gy-*
makirasi kudzora vertical gutters.
.col
nemigero
.gy-4
_
.col
nemigero
.gy-4
_
.col
nemigero
.gy-4
_
.col
nemigero
.gy-4
_
.col
nemigero
.gy-4
_
.col
nemigero
.gy-4
_
Nemakirasi .g-*
, magita mumativi ese ari maviri anogona kugadziriswa.
.col
nemigero
.g-3
_
.col
nemigero
.g-3
_
.col
nemigero
.g-3
_
.col
nemigero
.g-3
_
.col
nemigero
.g-3
_
.col
nemigero
.g-3
_
Containers
Mamwe makirasi akawedzerwa muBootstrap v4.4 anobvumira midziyo ine 100% yakafara kusvika pane imwe nzvimbo yekutyora. v5 inowedzera imwe xxl
breakpoint.