Intangiriro
Tangira hamwe na Bootstrap, urwego ruzwi cyane kwisi kubaka kubaka, imbuga za mbere zigendanwa, hamwe na jsDelivr hamwe nurupapuro rwerekana urupapuro.
Urashaka kongera vuba Bootstrap kumushinga wawe? Koresha jsDelivr, yatanzwe kubuntu nabantu kuri jsDelivr. Ukoresheje pake umuyobozi cyangwa ukeneye gukuramo dosiye yinkomoko? Kujya kurupapuro rwo gukuramo.
Gukoporora-shyira urupapuro rwimiterere <link>
yawe <head>
mbere yizindi mpapuro zose kugirango wikore CSS yacu.
Ibyinshi mubice byacu bisaba gukoresha JavaScript kugirango ikore. By'umwihariko, bakeneye jQuery , Popper.js , hamwe na plugin zacu za JavaScript. Shira ibikurikira <script>
hafi yimpera yimpapuro zawe, burimbere yo gufunga </body>
tagi, kugirango ubishoboze. jQuery igomba kuza mbere, hanyuma Popper.js, hanyuma amacomeka ya JavaScript.
Dukoresha sQ yubaka ya jQuery , ariko verisiyo yuzuye nayo irashyigikiwe.
Amatsiko ni ibihe bice bisaba jQuery, JS yacu, na Popper.js? Kanda ibice byerekana ibice hepfo. Niba utazi na gato ibijyanye nimiterere yurupapuro rusange, komeza usome kurugero rwurupapuro.
Erekana ibice bisaba JavaScript
- Imenyesha ryo kwirukana
- Utubuto two guhinduranya leta na checkbox / imikorere ya radio
- Carousel kumyitwarire yose ya slide, kugenzura, nibipimo
- Gusenyuka kugirango uhindure ibintu bigaragara
- Ibitonyanga byo kwerekana no guhagarara (bisaba na Popper.js )
- Uburyo bwo kwerekana, guhagarara, hamwe nimyitwarire
- Navbar yo kwagura Gucomeka kwacu kugirango dushyire mubikorwa imyitwarire isubiza
- Ibikoresho na popovers zo kwerekana no guhagarara (bisaba na Popper.js )
- Umuzingo wo kwitwara neza no kugendagenda
Wemeze ko paji zawe zishyirwaho hamwe nibishushanyo mbonera bigezweho. Ibyo bivuze gukoresha HTML5 yinyandiko kandi ushizemo meta meta tag kugirango imyitwarire iboneye. Shyira byose hamwe kandi page yawe igomba kumera gutya:
Nibyo byose ukeneye kubisabwa muri page yose. Sura inyandiko ya Layout cyangwa ingero zacu zemewe kugirango utangire ushireho ibiri kurubuga rwawe nibigize.
Bootstrap ikoresha urutonde rwingenzi rwimiterere yisi yose hamwe nigenamiterere uzakenera kumenya mugihe uyikoresha, ibyo byose bikaba bigenewe gusa kuganisha kumiterere yuburyo bwa mushakisha. Reka twibire.
Bootstrap isaba gukoresha inyandiko ya HTML5. Bitabaye ibyo, uzabona bimwe bisekeje bituzuye, ariko harimo ntibigomba gutera hiccups.
Bootstrap yatejwe imbere mobile mbere , ingamba aho duhindura code kubikoresho bigendanwa mbere hanyuma tugahindura ibice nkibikenewe dukoresheje ibibazo bya media bya CSS. Kugirango wemeze neza kandi ukore zooming kubikoresho byose, ongeramo reba reba reba meta tag yawe <head>
.
Urashobora kubona urugero rwibi mubikorwa mugutangira inyandikorugero .
Kubunini buringaniye muri CSS, duhindura box-sizing
agaciro kwisi kuva content-box
kuri border-box
. Ibi byemeza padding
ko bitagira ingaruka ku bugari bwa nyuma bwabazwe, ariko birashobora gutera ibibazo hamwe na software ya gatatu nka Google Ikarita ya Google na moteri ishakisha Google.
Mubihe bidasanzwe ugomba kubirengaho, koresha ikintu nkiki gikurikira:
Hamwe n'igice cyavuzwe haruguru, ibintu byashyizwe mu majwi - harimo ibyakozwe binyuze muri - ::before
kandi ::after
byose bizaragwa ibyateganijwe box-sizing
kuri ibyo .selector-for-some-widget
.
Wige byinshi kubyerekeye agasanduku k'icyitegererezo n'ubunini kuri CSS Amayeri .
Kugirango tunonosore neza-cross-mushakisha, dukoresha Reboot kugirango dukosore ibitagenda neza kuri mushakisha n'ibikoresho mugihe dutanga ibisubizo bike byibitekerezo kubintu bisanzwe bya HTML.
Komeza kugezwaho amakuru yiterambere rya Bootstrap hanyuma ugere kubaturage hamwe nibikoresho bifasha.
- Kurikira @getbootstrap kuri Twitter .
- Soma kandi wiyandikishe kuri Blog ya Bootstrap .
- Ganira na Bootstrappers bagenzi bawe muri IRC. Kuri
irc.freenode.net
seriveri, mu##bootstrap
muyoboro. - Imfashanyo yo gushyira mubikorwa irashobora kuboneka kuri Stack Overflow (tagged
bootstrap-4
). - Abashinzwe iterambere bagomba gukoresha ijambo ryibanze
bootstrap
kumupaki ahindura cyangwa akongera kumikorere ya Bootstrap mugihe akwirakwiza binyuze muri npm cyangwa uburyo busa bwo gutanga kubintu byinshi byavumbuwe.
Urashobora kandi gukurikira @getbootstrap kurubuga rwa Twitter kubwamazimwe agezweho hamwe namashusho yindirimbo nziza.