Zamkatimu
Dziwani zomwe zili mu Bootstrap, kuphatikiza zokometsera zathu zomwe zidapangidwa kale komanso zoyambira. Kumbukirani, mapulagini a JavaScript a Bootstrap amafuna jQuery.
Mukatsitsa, tsegulani chikwatu chominikizidwa ndipo muwona chonga ichi:
Uwu ndiye mtundu wofunikira kwambiri wa Bootstrap: mafayilo opangidwa kale kuti mugwiritse ntchito mwachangu pafupifupi pulojekiti iliyonse. Timapereka CSS ndi JS ( bootstrap.*
), kuphatikizapo CSS ndi JS ( bootstrap.min.*
). Mamapu a CSS ( bootstrap.*.map
) alipo kuti agwiritsidwe ntchito ndi zida zopangira asakatuli ena. Mafayilo a JS ophatikizidwa ( bootstrap.bundle.js
ndi minified bootstrap.bundle.min.js
) akuphatikiza Popper , koma osati jQuery .
Bootstrap imaphatikizapo zosankha zingapo zophatikizira zina kapena zonse zomwe zidapangidwa ndi CSS.
CSS mafayilo | Kamangidwe | Zamkatimu | Zigawo | Zothandizira |
---|---|---|---|---|
bootstrap.css
bootstrap.min.css
|
Kuphatikizidwa | Kuphatikizidwa | Kuphatikizidwa | Kuphatikizidwa |
bootstrap-grid.css
bootstrap-grid.min.css
|
Grid system yokha | Osaphatikizidwa | Osaphatikizidwa | Zida zosinthira zokha |
bootstrap-reboot.css
bootstrap-reboot.min.css
|
Osaphatikizidwa | Kungoyambitsanso | Osaphatikizidwa | Osaphatikizidwa |
Mofananamo, tili ndi zosankha zophatikizira zina kapena zonse za JavaScript.
JS mafayilo | Popa | jQuery |
---|---|---|
bootstrap.bundle.js
bootstrap.bundle.min.js
|
Kuphatikizidwa | Osaphatikizidwa |
bootstrap.js
bootstrap.min.js
|
Osaphatikizidwa | Osaphatikizidwa |
Kutsitsa kwa code ya Bootstrap kumaphatikizapo katundu wa CSS ndi JavaScript, komanso gwero la Sass, JavaScript, ndi zolemba. Makamaka, imaphatikizapo zotsatirazi ndi zina:
The scss/
ndipo js/
ndiye gwero la CSS yathu ndi JavaScript. Chikwatucho dist/
chimaphatikizapo zonse zomwe zalembedwa mugawo lotsitsa lomwe lasanjidwa pamwambapa. Fodayi docs/
imaphatikizapo gwero la zolemba zathu, komanso examples/
kugwiritsa ntchito Bootstrap. Kupitilira apo, fayilo ina iliyonse yophatikizidwa imapereka chithandizo pamaphukusi, zidziwitso zamalayisensi, ndi chitukuko.