Overview
Zvikamu uye sarudzo dzekuisa yako Bootstrap purojekiti, kusanganisira yekuputira midziyo, ine simba gidhi system, inoshanduka midhiya chinhu, uye inopindura zvekushandisa makirasi.
Containers ndiyo inonyanya kukosha dhizaini muBootstrap uye inodiwa kana uchishandisa yedu default grid system . Sarudza kubva mumudziyo unopindura, wakagadzika-wakafara (zvichireva max-width
shanduko dzayo panzvimbo yega yega) kana fluid-width (zvinoreva kuti 100%
yakakura nguva dzese).
Nepo midziyo inogona kuvharirwa, marongerwo mazhinji haadi chigadziko chine madendere.
Shandisa .container-fluid
kune yakazara hupamhi chigaba, chinotenderera hupamhi hwese hwekutarisa.
Sezvo Bootstrap yakagadziridzwa kuti ive mbozha yekutanga, isu tinoshandisa mishoma yemibvunzo midhiya kugadzira inonzwisisika yekutyora kwemaitiro edu uye mainterface. Aya mabreakpoints anonyanya kuve akavakirwa pane mashoma ekutarisa upamhi uye anotibvumira kukwira kumusoro zvinhu sekuchinja kwekutarisa.
Bootstrap inonyanya kushandisa iyo inotevera midhiya yemubvunzo marenji-kana breakpoints-mune yedu sosi maSass mafaera edhizaini yedu, grid system, uye zvikamu.
Sezvo isu tichinyora yedu sosi CSS muSass, yedu yese midhiya mibvunzo inowanikwa kuburikidza neSass musanganiswa:
Isu dzimwe nguva tinoshandisa midhiya mibvunzo inoenda kune rimwe divi (iyo yakapihwa skrini saizi kana diki ):
Ziva kuti sezvo mabhurawuza pari zvino asingatsigire mivhunzo yezvimiro , isu tinoshanda zvakatenderedza min-
uye max-
prefixes uye nzvimbo dzekutarisa dzine hupamhi hwakaganhurwa (izvo zvinogona kuitika mune mamwe mamiriro pamichina yepamusoro-dpi, semuenzaniso) nekushandisa hunhu nehunyanzvi hwepamusoro pakuenzanisa uku. .
Zvekare, iyi midhiya mibvunzo inowanikwawo kuburikidza neSass musanganiswa:
Kune zvakare midhiya mibvunzo uye musanganiswa wekunongedza chikamu chimwe chete chehukuru hwescreen uchishandisa hudiki uye hwakanyanya breakpoint upamhi.
Iyi midhiya mibvunzo inowanikwawo kuburikidza neSass musanganiswa:
Saizvozvo, midhiya mibvunzo inogona kureba akawanda breakpoint wides:
Iyo Sass musanganiswa wekutarisa yakafanana skrini saizi renji ingave:
Zvinoverengeka zveBootstrap zvinoshandisa z-index
, iyo CSS pfuma inobatsira kudzora marongero nekupa yechitatu axis kuronga zvirimo. Isu tinoshandisa yakasarudzika z-index chiyero muBootstrap iyo yakagadzirirwa kunyatso kurongedza kufamba, matipi ezvishandiso uye popovers, modal, nezvimwe.
Hunhu hwepamusoro uhwu hunotanga panhamba isingaverengeki, yakakwirira uye yakananga zvakakwana kudzivirira kunetsana. Tinoda yakajairwa seti yeizvi mukati mezvikamu zvedu zvakaturikidzana-zvishandiso, popovers, navbars, dropdowns, modals-kuti tigone kuenderana mune maitiro. Hapana chikonzero chatingadai tisina kushandisa 100
+ kana 500
+.
Hatikurudzire kugadziridzwa kwetsika dzemunhu idzi; kana ukachinja imwe chete, ungangoda kuichinja ese.
Kubata mabhodha anodhumhana mukati mezvikamu (semu, mabhatani nezvinoiswa mumapoka ekuisa), tinoshandisa yakaderera manhamba z-index
ma values e 1
, 2
, uye 3
kune default , hover, uye inoshanda matunhu. Pane hover/focus/active, tinounza chimwe chinhu kumberi chine z-index
kukosha kwepamusoro kuratidza muganho wavo pamusoro pezvinhu zvehama.