Nweba i-Bootstrap ukuze usebenzise izitayela nezingxenye ezifakiwe, kanye neziguquguqukayo ezincane nezixube.
I-Bootstrap yenziwe nge-LESS engqikithini yayo, ulimi lweshidi lesitayela oluguqukayo oludalwe umngane wethu omkhulu, u- Alexis Sellier . Kwenza ukuthuthukiswa kwe-CSS okusekelwe kumasistimu kusheshe, kube lula, futhi kube mnandi kakhulu.
Omunye wabadali be-Bootstrap ubhale iposi lebhulogi esheshayo mayelana nalokhu , okufingqiwe lapha:
Njengesandiso se-CSS, i-LESS ihlanganisa okuguquguqukayo, imiksi yamazwibela asebenzisekayo ekhodi, imisebenzi yezibalo ezilula, ukwenza isidleke, kanye nemisebenzi yombala.
Vakashela iwebhusayithi esemthethweni kokuthi http://lesscss.org/ ukuze ufunde kabanzi.
Njengoba i-CSS yethu ibhalwe Ngokuncane futhi isebenzisa okuguquguqukayo namamiksi, idinga ukuhlanganiswa ukuze kusetshenziswe ukukhiqizwa kokugcina. Nansi indlela.
Landela imiyalo ekufundweni kwephrojekthi ku-GitHub ukuze uyihlanganise ngomugqa womyalo.
Landa i-Less.js yakamuva futhi ufake indlela eya kuyo (kanye ne-Bootstrap) kufayela le- <head>
.
<link rel = "stylesheet/less" href = "/path/to/bootstrap.less" > <script src = "/path/to/less.js" ></script>
Ukuze uhlanganise kabusha amafayela .less, vele uwagcine bese ulayisha kabusha ikhasi lakho. I-Less.js iyawahlanganisa futhi iwagcine endaweni yokugcina indawo.
Uhlelo lokusebenza lwe-Mac olungekho emthethweni lubuka izinkomba zamafayela .less futhi luhlanganise ikhodi kumafayela endawo ngemva kokulondolozwa kwefayela elibukiwe .less. Uma uthanda, ungakwazi ukuguqula okuncamelayo kuhlelo lokusebenza ukuze kuncishiswe okuzenzakalelayo nokuthi iyiphi inkomba amafayela ahlanganisiwe agcina engenile.
I-Crunch ingumhleli obukeka kahle KA-LESS kanye nomhlanganisi owakhelwe ku-Adobe Air.
Idalwe umfana ofanayo nohlelo lokusebenza lwe-Mac olungekho emthethweni, i-CodeKit iwuhlelo lokusebenza lwe-Mac oluhlanganisa i-LESS, i-SASS, i-Stylus, ne-CoffeeScript.
Uhlelo lokusebenza lwe-Mac, i-Linux, ne-Windows lokuhlanganiswa kokudonsa nokudedela kwamafayela angu-LESS. Futhi, ikhodi yomthombo iku-GitHub .
Ngokushesha qala noma iyiphi iphrojekthi yewebhu ngokufaka i-CSS ehlanganisiwe noma encishisiwe ne-JS. Isendlalelo sezitayela zangokwezifiso ngokuhlukene ukuze kuthuthukiswe kalula nokunakekelwa okuqhubekela phambili.
Landa i-Bootstrap ehlanganisiwe yakamuva futhi uyifake kuphrojekthi yakho. Ngokwesibonelo, ungase ube nento efana nale:
uhlelo lokusebenza/ izakhiwo/ izifanekiso/ umphakathi/ css/ bootstrap.min.css js/ bootstrap.min.js img/ glyphicons-halflings.png ama-glyphicons-halflings-white.png
Kopisha isisekelo se-HTML esilandelayo ukuze uqalise.
- <html>
- <ikhanda>
- <isihloko> Isifanekiso se-Bootstrap 101 </title>
- <!-- I-Bootstrap -->
- <link href = "public/css/bootstrap.min.css" rel = "stylesheet" >
- </ikhanda>
- <umzimba>
- <h1> Sawubona, mhlaba! </h1>
- <!-- I-Bootstrap -->
- <script src = "public/js/bootstrap.min.js" ></script>
- </umzimba>
- </html>
Sebenza nge-CSS yakho yangokwezifiso, i-JS, nokuningi njengoba kudingeka ukuze wenze i-Bootstrap ibe ngeyakho ngamafayela akho ahlukene e-CSS kanye ne-JS.
- <html>
- <ikhanda>
- <isihloko> Isifanekiso se-Bootstrap 101 </title>
- <!-- I-Bootstrap -->
- <link href = "public/css/bootstrap.min.css" rel = "stylesheet" >
- <!-- Iphrojekthi -->
- <link href = "public/css/application.css" rel = "stylesheet" >
- </ikhanda>
- <umzimba>
- <h1> Sawubona, mhlaba! </h1>
- <!-- I-Bootstrap -->
- <script src = "public/js/bootstrap.min.js" ></script>
- <!-- Iphrojekthi -->
- <script src = "public/js/application.js" ></script>
- </umzimba>
- </html>