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.6.2 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še di kgobokeditšwego le tše di fokoditšwego (bona papiso ya difaele tša JS ) .
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).
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:
- Sass mokgoboketši wa go kgoboketša difaele tša mohlodi tša Sass ka gare ga difaele tša CSS
- Sehlongwapele sa go itiriša sa hlogo ya morekiši wa CSS
Should you require our full set of build tools , di akaretswa bakeng sa ho ntshetsa pele Bootstrap le docs lona, empa ho na le kgonego ya ba sa lokelang bakeng sa merero ea hao.
Mehlala
Ge e ba o nyaka go taonelouta le go hlahloba mehlala ya rena , o ka tšea mehlala yeo e šetšego e agilwe:
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-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>
Ge e ba o diriša JavaScript ya rena yeo e kgobokeditšwego gomme o rata go akaretša Popper ka thoko, oketša Popper pele ga JS ya rena, ka CDN go kaone.
<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>
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 bootstrap
ka 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/*.js
difaele ka tlase ga tšhupetšo ya maemo a godimo ya sephuthelwana.
Bootstrap's package.json
e 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 Bootstrapstyle
- 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) .
tlhale ya
Tsenya Bootstrap ka go didirišwa tša gago tšeo di šomišago Node.js ka sephuthelwana sa tlhale :
yarn add bootstrap
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.6.2'
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.6.2
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.6.2
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