Source

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.1.3 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 ku hungutiwa

Leswi a swi katsi matsalwa, tifayela ta xihlovo, kumbe ku titshega kwihi na kwihi ka JavaScript loku nga hlawuriwa (jQuery na Popper.js).

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:

  • Sass compiler (Libsass kumbe Ruby Sass ya seketeriwa) ku hlengeleta CSS ya wena.
  • Autoprefixer ya xirhangi xa muxavisi wa CSS

Should you require 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

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-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

Loko u tirhisa JavaScript ya hina leyi hlengeletiweke, u nga rivali ku katsa tivhidiyo ta CDN ta jQuery na Popper.js emahlweni ka yona.

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" 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 bootstrapyoxe a yi rhumeli nchumu ehandle. U nga layicha hi voko ti-plugin ta jQuery ta Bootstrap hi toxe hi ku layicha /js/*.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)

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.1.3'

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

gem install bootstrap -v 4.1.3

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.1.3

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