Tlula eka nhlokomhaka-nkulu Tlula eka docs navigation
in English

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 v5.0.2 ku olova ku wela eka phurojeke ya wena, leyi katsaka:

Leswi a swi katsi matsalwa, tifayela ta xihlovo, kumbe ku titshega kwihi na kwihi ka JavaScript loku nga hlawuriki ku fana na Popper.

Downloda

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:

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.

Download xihlovo

Swikombiso

Loko u lava ku kopa ni ku kambisisa swikombiso swa hina , u nga khoma swikombiso leswi se swi akiweke:

Download Swikombiso

CDN hi ku tirhisa jsDelivr

Tlula ku dawuniloda hi jsDelivr ku yisa vuhundzuluxeri lebyi hlayisiweke bya Bootstrap’s compiled CSS na JS eka phurojeke ya wena.

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" 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/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" 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

const bootstrap = require('bootstrap')kumbe import bootstrap from 'bootstrap'yi ta layicha ti-plugin hinkwato ta Bootstrap eka bootstrapnchumu wo karhi. Modyuli hi yoxe yi bootstraprhumela ehandle ti-plugin ta hina hinkwato. U nga layicha hi voko ti-plugin ta Bootstrap hi toxe hi ku layicha /js/dist/*.jstifayela ehansi ka xikombo xa xiyimo xa le henhla xa phasela.

Bootstrap's package.jsonyi na metadata yin'wana yo engetela ehansi ka swilotlelo leswi landzelaka:

  • sass- ndlela ya fayili ya xihlovo xa Sass leyikulu ya Bootstrap
  • style- ndlela ya Bootstrap's non-minified CSS leyi nga hlengeletiwa ka ha ri emahlweni hi ku tirhisa swiletelo swa ntolovelo (ku hava ku cinca)
Sungula hi Bootstrap hi ku tirhisa npm hi phurojeke ya hina yo sungula! Khoma ndlela eka vuhlayiselo bya xifaniso xa twbs/bootstrap-npm-starter ku vona ndlela yo aka na ku lulamisa Bootstrap eka phurojeke ya wena ya npm. Ku katsa na muhlengeleti wa Sass, Autoprefixer, Stylelint, PurgeCSS, na Swifaniso swa Bootstrap.

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', '~> 5.0.2'

Handle ka sweswo, loko u nga tirhisi Bundler, u nga nghenisa gem hi ku tirhisa xileriso lexi:

gem install bootstrap -v 5.0.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:5.0.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