Bootstrap grid mienzaniso

Basic grid marongero kuti iwe ujairane nekuvaka mukati meBootstrap grid system.

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.

.col-4
.col-4
.col-4
.col-sm-4
.col-sm-4
.col-sm-4
.col-md-4
.col-md-4
.col-md-4
.col-lg-4
.col-lg-4
.col-lg-4
.col-xl-4
.col-xl-4
.col-xl-4

Makoramu matatu akaenzana

Tora makoramu matatu akaenzana-akaenzana kutangira pamatafura uye kukwira kumatafura makuru . Pane nharembozha, mahwendefa uye pazasi, makoramu anozomira otomatiki.

.col-md-4
.col-md-4
.col-md-4

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.

.com-md-3
.col-md-6
.com-md-3

Makoramu maviri

Tora makoramu maviri kutanga pamatafura uye kukwira kumatafura makuru .

.col-md-8
.col-md-4

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.

.col-md-8
.col-md-6
.col-md-6
.col-md-4

Yakasanganiswa: nhare uye desktop

Iyo Bootstrap v4 grid system ine matavi mashanu emakirasi: xs (yakawedzera diki), sm (diki), md (pakati), lg (huru), uye xl (yakawedzera hombe). 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 hwe xs uye sm, iwe unongoda kutsanangura xs.

.col-12 .col-md-8
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6
.col-6

Yakasanganiswa: nhare, piritsi, uye desktop

.col-12 .col-sm-6 .col-lg-8
.col-6 .col-lg-4
.col-6 .col-sm-4
.col-6 .col-sm-4
.col-6 .col-sm-4