ʻIkepili
E ʻike i nā mea i hoʻokomo ʻia i loko o Bootstrap, me kā mākou ʻono i hoʻopaʻa mua ʻia a kumu kumu. E hoʻomanaʻo, pono nā plugins JavaScript a Bootstrap i ka jQuery.
Bootstrap i hoʻopili mua ʻia
Ke hoʻoiho ʻia, wehe i ka waihona i hoʻopaʻa ʻia a ʻike ʻoe i kahi mea penei:
ʻO kēia ke ʻano maʻamau o Bootstrap: nā faila precompiled no ka hoʻohana wikiwiki ʻana i ka hoʻohana ʻana ma kahi o nā papahana pūnaewele. Hāʻawi mākou i CSS i hui pū ʻia a me JS ( bootstrap.*
), a me CSS i hōʻuluʻulu ʻia a hoʻemi ʻia a me JS ( bootstrap.min.*
). Loaʻa nā palapala ʻāina kumu ( bootstrap.*.map
) no ka hoʻohana ʻana me kekahi mau mea hoʻomohala pūnaewele. ʻO nā faila JS i hui pū ʻia ( bootstrap.bundle.js
a hoʻemi ʻia bootstrap.bundle.min.js
) me Popper , akā ʻaʻole jQuery .
Nā faila CSS
Loaʻa i ka Bootstrap kahi lima o nā koho no ka hoʻokomo ʻana i kekahi a i ʻole kā mākou CSS i hōʻuluʻulu ʻia.
Nā faila CSS | Hoʻolālā | Maʻiʻo | Nā ʻāpana | Nā pono hana |
---|---|---|---|---|
bootstrap.css
bootstrap.min.css
|
Hoʻokomo ʻia | Hoʻokomo ʻia | Hoʻokomo ʻia | Hoʻokomo ʻia |
bootstrap-grid.css
bootstrap-grid.min.css
|
ʻōnaehana mānoanoa wale nō | ʻAʻole i komo | ʻAʻole i komo | ʻO nā pono ponoʻī wale nō |
bootstrap-reboot.css
bootstrap-reboot.min.css
|
ʻAʻole i komo | Hoʻomaka hou wale | ʻAʻole i komo | ʻAʻole i komo |
JS waihona
Pēlā nō, loaʻa iā mākou nā koho no ka hoʻokomo ʻana i kekahi o kā mākou JavaScript i hōʻuluʻulu ʻia.
JS waihona | Popper | jQuery |
---|---|---|
bootstrap.bundle.js
bootstrap.bundle.min.js
|
Hoʻokomo ʻia | ʻAʻole i komo |
bootstrap.js
bootstrap.min.js
|
ʻAʻole i komo | ʻAʻole i komo |
Code kumu Bootstrap
Loaʻa i ka hoʻoiho kumu kumu Bootstrap nā waiwai CSS a me JavaScript i hoʻopaʻa mua ʻia, me ke kumu Sass, JavaScript, a me nā palapala. ʻOi aku ka kikoʻī, e pili ana i kēia a me nā mea hou aku:
ʻO ka scss/
a js/
ʻo ia ke kumu kumu no kā mākou CSS a me JavaScript. Aia ka dist/
waihona i nā mea a pau i helu ʻia ma ka ʻāpana hoʻoiho precompiled ma luna. Aia ka site/docs/
waihona i ke kumu kumu no kā mākou palapala, a me examples/
ka hoʻohana ʻana iā Bootstrap. Ma waho aʻe o kēlā, hāʻawi nā faila ʻē aʻe i ke kākoʻo no nā pūʻolo, ʻike laikini, a me ka hoʻomohala ʻana.