Downloda
Download Bootstrap ku kuma CSS na JavaScript leyi hlengeletiweke, khodi ya xihlovo, kutani u yi katsa na vafambisi va tiphasela lava u va tsakelaka ku fana na npm, RubyGems, na swin’wana.
Ku hlengeletiwile CSS na JS
Download khodi leyi hlengeletiweke leyi lunghekeleke ku tirhisiwa ya Bootstrap v4.6.2 ku olova ku wela eka phurojeke ya wena, leyi katsaka:
- Swihlanganisi swa CSS leswi hlengeletiweke ni leswi hungutiweke (vona ku pimanisiwa ka tifayela ta CSS ) .
- Ti-plugin ta JavaScript leti hlengeletiweke ni leti hungutiweke (vona ku pimanisiwa ka tifayela ta JS ) .
Leswi a swi katsi matsalwa, tifayela ta xihlovo, kumbe ku titshega kwihi na kwihi ka JavaScript loku nga hlawuriwa (jQuery na Popper).
Tifayili ta xihlovo
Hlengeleta Bootstrap hi phayiphi ya wena ya nhundzu hi ku kopa xihlovo xa hina xa Sass, JavaScript, na tifayela ta matsalwa. Nhlawulo lowu wu lava switirhisiwa swo karhi leswi engetelekeke:
- Sass compiler yo hlengeleta tifayela ta xihlovo xa Sass eka tifayela ta CSS
- Autoprefixer ya xirhangi xa muxavisi wa CSS
Should you require our full set of build tools , swi katsiwile ku hluvukisa Bootstrap na ti docs ta yona, kambe swi nga endleka swi nga fanelanga eka swikongomelo swa wena.
Swikombiso
Loko u lava ku kopa ni ku kambisisa swikombiso swa hina , u nga khoma swikombiso leswi se swi akiweke:
jsDelivr
Tlula ku dawuniloda hi jsDelivr ku yisa vuhundzuluxeri lebyi hlayisiweke bya Bootstrap’s compiled CSS na JS eka phurojeke ya wena.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
Loko u tirhisa JavaScript ya hina leyi hlengeletiweke naswona u tsakela ku katsa Popper hi ku hambana, engetela Popper emahlweni ka JS ya hina, hi ku tirhisa CDN hi ku tsakela.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
Vafambisi va tiphasela
Koka tifayela ta xihlovo ta Bootstrap eka kwalomu ka phurojeke yihi na yihi na van’wana va vafambisi va tiphasela lava dumeke swinene. Ku nga khathariseki mufambisi wa tiphasela, Bootstrap yi ta lava muhlengeleti wa Sass na Autoprefixer eka xiyimiso lexi fambelanaka na tivhidiyo ta hina ta ximfumo leti hlengeletiweke.
npm
Nghenisa Bootstrap eka ti-app ta wena leti tirhisaka Node.js hi phasela ra npm :
npm install bootstrap
require('bootstrap')
yi ta layicha hinkwaswo swa ti-plugin ta jQuery ta Bootstrap eka nchumu wa jQuery. Modyuli hi bootstrap
yoxe a yi rhumeli nchumu ehandle. U nga layicha hi voko ti-plugin ta jQuery ta Bootstrap hi toxe hi ku layicha /js/*.js
tifayela ehansi ka xikombo xa xiyimo xa le henhla xa phasela.
Bootstrap's package.json
yi na metadata yin'wana yo engetela ehansi ka swilotlelo leswi landzelaka:
sass
- ndlela ya fayili ya xihlovo xa Sass leyikulu ya Bootstrapstyle
- ndlela ya Bootstrap's non-minified CSS leyi nga hlengeletiwa ka ha ri emahlweni hi ku tirhisa swiletelo swa ntolovelo (ku hava ku cinca)
yarn
Nghenisa Bootstrap eka ti-app ta wena leti tirhisaka Node.js hi phasela ra yarn :
yarn add bootstrap
RubyGems yi vula leswaku
Nghenisa Bootstrap eka ti-app ta wena ta Ruby hi ku tirhisa Bundler ( swi ringanyetiwa ) na RubyGems hi ku engetela layini leyi landzelaka eka ya wena Gemfile
:
gem 'bootstrap', '~> 4.6.2'
Handle ka sweswo, loko u nga tirhisi Bundler, u nga nghenisa gem hi ku tirhisa xileriso lexi:
gem install bootstrap -v 4.6.2
Vona README ya gem ku kuma vuxokoxoko byo tala.
Muqambhi
U nga ha tlhela u nghenisa no lawula Sass na JavaScript ya Bootstrap hi ku tirhisa Composer :
composer require twbs/bootstrap:4.6.2
NuGet
Loko u hluvukisa eka .NET, u nga ha tlhela u nghenisa no lawula CSS ya Bootstrap kumbe Sass na JavaScript hi ku tirhisa NuGet :
Install-Package bootstrap
Install-Package bootstrap.sass