Zamkatimu
Dziwani zomwe zili mu Bootstrap, kuphatikiza zokometsera zathu zomwe zidapangidwa kale komanso zoyambira. Kumbukirani, mapulagini a JavaScript a Bootstrap amafuna jQuery.
Bootstrap yopangidwa kale
Mukatsitsa, tsegulani chikwatu chominikizidwa ndipo muwona chonga ichi:
bootstrap/
├── css/
│ ├── bootstrap-grid.css
│ ├── bootstrap-grid.css.map
│ ├── bootstrap-grid.min.css
│ ├── bootstrap-grid.min.css.map
│ ├── bootstrap-reboot.css
│ ├── bootstrap-reboot.css.map
│ ├── bootstrap-reboot.min.css
│ ├── bootstrap-reboot.min.css.map
│ ├── bootstrap.css
│ ├── bootstrap.css.map
│ ├── bootstrap.min.css
│ └── bootstrap.min.css.map
└── js/
├── bootstrap.bundle.js
├── bootstrap.bundle.js.map
├── bootstrap.bundle.min.js
├── bootstrap.bundle.min.js.map
├── bootstrap.js
├── bootstrap.js.map
├── bootstrap.min.js
└── bootstrap.min.js.map
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 ( bootstrap.*.map
) alipo kuti agwiritsidwe ntchito ndi zida za asakatuli ena. Mafayilo a JS ophatikizidwa ( bootstrap.bundle.js
ndi minified bootstrap.bundle.min.js
) akuphatikiza Popper , koma osati jQuery .
CSS mafayilo
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 |
JS mafayilo
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 |
Bootstrap source code
Kutsitsa kwa code ya Bootstrap kumaphatikizapo katundu wa CSS ndi JavaScript, komanso gwero la Sass, JavaScript, ndi zolemba. Makamaka, imaphatikizapo zotsatirazi ndi zina:
bootstrap/
├── dist/
│ ├── css/
│ └── js/
├── site/
│ └── content/
| └── docs/
| └── 4.6/
| └── examples/
├── js/
└── scss/
The scss/
ndipo js/
ndiye gwero la CSS yathu ndi JavaScript. Chikwatucho dist/
chimaphatikizapo zonse zomwe zalembedwa mugawo lotsitsa lomwe lasanjidwa pamwambapa. Fodayi site/docs/
imaphatikizapo gwero la zolemba zathu, komanso examples/
kugwiritsa ntchito Bootstrap. Kupitilira apo, fayilo ina iliyonse yophatikizidwa imapereka chithandizo pamaphukusi, zidziwitso zamalayisensi, ndi chitukuko.