Source

Taonelouta

Download Bootstrap go hwetša CSS le JavaScript tše di kgobokeditšwego, khoutu ya mohlodi, goba o e akaretše le balaodi ba gago ba diphuthelwana bao o ba ratago go swana le npm, RubyGems, le tše dingwe.

E kgobokeditšwe CSS le JS

Download loketse-ho-sebediswa khoutu ya bokella bakeng sa Bootstrap v4.0.0 ho habonolo lahlela ka porojeke e ne ya hao, e leng akarelletsa:

  • Diphuthelwana tša CSS tše di kgobokeditšwego le tše di fokoditšwego (bona papiso ya difaele tša CSS ) .
  • Di-plugin tša JavaScript tšeo di kgobokeditšwego le go fokotšwa

Se ga se akaretše ditokomane, difaele tša mothopo, goba ditshepetšo dife goba dife tša JavaScript tša boikhethelo (jQuery le Popper.js).

Taonelouta

Difaele tša mohlodi

Kgoboketša Bootstrap ka phaephe ya gago ya matlotlo ka go taonelouta difaele tša rena tša mohlodi tša Sass, JavaScript, le ditokomane. Kgetho ye e nyaka didirišwa tše dingwe tša tlaleletšo:

  • Mokgoboketši wa Sass (Libsass goba Ruby Sass e a thekgwa) bakeng sa go kgoboketša CSS ya gago.
  • Sehlongwapele sa go itiriša sa hlogo ya morekiši wa CSS

Should you require build tools , di akareditšwe bakeng sa go hlabolla Bootstrap le di-doc tša yona, eupša go bonagala di sa swanela merero ya gago.

Download mohlodi

jsDelivr

Tlolela go taonelouta ka jsDelivr go tliša phetolelo ye e bolokilwego ya CSS le JS tše di kgobokeditšwego tša Bootstrap go projeke ya gago.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

Ge e ba o diriša JavaScript ya rena yeo e kgobokeditšwego, o se ke wa lebala go akaretša diphetolelo tša CDN tša jQuery le Popper.js pele ga yona.

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>

Balaodi ba diphuthelwana

Hula ka difaele tša mohlodi tša Bootstrap go mo e nyakilego go ba projeke efe goba efe le ba bangwe ba balaodi ba diphuthelwana tše di tumilego kudu. Go sa kgathalege molaodi wa sephuthelwana, Bootstrap e tla nyaka mokgoboketši wa Sass le Autoprefixer bakeng sa peakanyo yeo e swanago le diphetolelo tša rena tša semmušo tše di kgobokeditšwego.

npm

Tsenya Bootstrap ka go didirišwa tša gago tšeo di šomišago Node.js ka sephuthelwana sa npm :

npm install bootstrap

require('bootstrap')e tla laetša di-plugin ka moka tša jQuery tša Bootstrap godimo ga selo sa jQuery. Mojule bootstrapka bowona ga o romele ntle selo. O ka laetša ka seatla di-plugin tša jQuery tša Bootstrap ka botee ka go laetša /js/*.jsdifaele ka tlase ga tšhupetšo ya maemo a godimo ya sephuthelwana.

Bootstrap's package.jsone na le metadata ye nngwe ya tlaleletšo ka fase ga dinotlelo tše di latelago:

  • sass- tsela ya go ya go faele ya mohlodi ya Sass ye kgolo ya Bootstrap
  • style- tsela ya go ya go Bootstrap ya CSS yeo e sa fokotšwago yeo e kgobokeditšwego pele ka go diriša dipeakanyo tša go se fetoge (ga go na go tlwaetša) .

RubyGems ya go swana le yona

Tsenya Bootstrap ka go didirišwa tša gago tša Ruby o diriša Bundler ( e kgothaletšwa ) le RubyGems ka go oketša mola wo o latelago go ya gago Gemfile:

gem 'bootstrap', '~> 4.0.0'

Ka go fapana le moo, ge e ba o sa šomiše Bundler, o ka tsenya lehlwa ka go sepetša taelo ye:

gem install bootstrap -v 4.0.0

Bona README ya lehlwa bakeng sa dintlha tše dingwe.

Mohlami wa mmino

O ka boela wa kenya le ho laola Bootstrap's Sass le JavaScript o sebedisa Composer :

composer require twbs/bootstrap:4.0.0

NuGet

Ge e ba o hlabolla ka go .NET, o ka tsenya gape le go laola CSS ya Bootstrap goba Sass le JavaScript o diriša NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass