Tlolela go diteng tše kgolo Tlolela go docs navigation
Check
in English

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 v5.2.1 ho habonolo lahla ka porojeke e ne ya hao, e leng akarelletsa:

Se ga se akaretše ditokomane, difaele tša mothopo, goba ditshepetšo dife goba dife tša JavaScript tša boikhethelo go swana le Popper.

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:

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.

Download mohlodi

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:

Download Mehlala

CDN ka 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 href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" 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/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" 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 [email protected]

const bootstrap = require('bootstrap')goba import bootstrap from 'bootstrap'e tla laetša di-plugin ka moka tša Bootstrap godimo ga bootstrapselo. Mojule bootstrapka bowona o romela ntle di-plugin tša rena ka moka. O ka laetša ka seatla di-plugin tša Bootstrap ka botee ka go laetša /js/dist/*.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 CSS ya Bootstrap yeo e sa fokotšwago yeo e kgobokeditšwego ka go diriša dipeakanyo tša go se fetoge (ga go na go tlwaetša) .
Thoma ka Bootstrap ka npm ka projeke ya rena ya go thoma! Hlogo ya polokelo ya thempleite ya twbs/bootstrap-npm-starter go bona ka moo o ka aga le go tlwaetša Bootstrap mo protšekeng ya gago ya npm. E akaretša mokgoboketši wa Sass, Sehlongwa sa go itiriša, Stylelint, PurgeCSS, le Diaekhone tša Bootstrap.

tlhale ya

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

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

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 5.2.1

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:5.2.1

NuGet

Ge e ba o hlabolla ka go .NET Framework, o ka tsenya gape le go laola CSS ya Bootstrap goba Sass le JavaScript o diriša NuGet . Diprotšeke tše mpsha di swanetše go šomiša libman goba mokgwa wo mongwe ka ge NuGet e hlametšwe khoutu ye e kgobokeditšwego, e sego dithoto tša frontend.

Install-Package bootstrap
Install-Package bootstrap.sass