A tlangpuiin
I Bootstrap project laying out na tur component leh option hrang hrang, wrapping container, grid system chak tak, media object flexible tak, leh responsive utility class te pawh a tel.
Containers hi Bootstrap a layout element bulpui ber a ni a , kan default grid system kan hman hunah a mamawh a ni . Responsive, fixed-width container ( max-width
breakpoint tinah a inthlak tihna) emaw fluid-width (a zau reng tihna a ni) atang hian thlang rawh 100%
.
Container te hi nest theih a nih laiin, layout tam zawkah chuan nested container a ngai lo.
Full width container atan hmang la .container-fluid
, viewport zau zawng zawng a huam vek ang.
Bootstrap hi mobile atana siam hmasak a nih avangin media query tlemte hmangin kan layout leh interface te tan sensible breakpoint kan siam thin. Heng breakpoint te hi a tam zawk chu minimum viewport widths atanga siam a ni a, viewport a inthlak ang zelin elements te kan scale up theih phah a ni.
Bootstrap hian kan layout, grid system leh component hrang hrangte tan kan source Sass file-ah hian a hnuaia media query range—or breakpoint—te hi a hmang ber a ni.
Sass-a kan source CSS kan ziah avangin kan media query zawng zawng hi Sass mixins hmangin a awm vek a:
Media query kan hmang fo thin a, chu chu kawng danga kal (screen size pek emaw a aia te emaw ):
Browser-te hian tunah hian range context queries an support loh avangin, heng tehkhin thute atan hian value dik zawk hmangin fractional width nei prefix min-
lehmax-
viewport-te limitation (chu chu high-dpi device-a condition thenkhat hnuaiah a thleng thei, entirnan) kan buaipui tih hre reng ang che .
Vawi khat chu heng media zawhnate hi Sass mixins hmangin a awm bawk:
Breakpoint width tlem ber leh sang ber hmanga screen size segment pakhat target theihna tur media query leh mixin te pawh a awm bawk.
Heng media zawhnate hi Sass mixins hmangin a awm bawk:
Chutiang bawkin media query te hian breakpoint width tam tak a huam thei bawk:
Screen size range inang target tur Sass mixin chu hetiang hi a ni ang:
Bootstrap component engemaw zatin z-index
, CSS property an hmang a, chu chuan layout control turin a pui a, content arrange turin third axis a pe a ni. Bootstrap ah hian default z-index scale kan hmang a, chu chu navigation, tooltips leh popovers, modals leh thil dang tam tak layer tha taka layer thei tura siam a ni.
Heng value sang zawkte hi duh duh number atanga tan a ni a, a sang leh a bik tawk a, a tha berah chuan buaina awm lo turin a intan thin. Kan layered component hrang hrangah hengte hi standard set kan mamawh a—tooltips, popovers, navbars, dropdowns, modals—chutiang chuan behaviors-ah hian reasonably consistent kan ni thei ang. 100
+ emaw + emaw kan hman theih loh chhan tur a awm lo 500
.
Heng mimal hlutnate hi customization kan fuih lo va; pakhat i thlak a nih chuan, i thlak vek a ngai mai thei.
Component chhunga overlapping border (eg, input group-a button leh input) te handle tur chuan , , leh default, hover, leh active state-te tan single digit z-index
value hniam tak tak kan hmang bawk. Hover/focus/active-ah chuan element pakhat bik chu value sang zawk nen hmahruaituah kan rawn hruai a, chu chuan sibling element-te chunga an border a lantir theih nan.1
2
3
z-index