Hla mus rau cov ntsiab lus tseem ceeb Hla mus rau docs navigation
Check
in English

Download tau

Rub tawm Bootstrap kom tau muab tso ua ke CSS thiab JavaScript, qhov chaws, lossis suav nrog koj cov neeg saib xyuas pob nyiam xws li npm, RubyGems, thiab ntau dua.

Compiled CSS thiab JS

Download tau npaj-rau-siv compiled code rau Bootstrap v5.2.1 kom yooj yim poob rau hauv koj qhov project, uas suav nrog:

Qhov no tsis suav nrog cov ntaub ntawv, cov ntaub ntawv, lossis ib qho kev xaiv JavaScript nyob ntawm qhov zoo li Popper.

Download tau

Cov ntaub ntawv qhov chaw

Sau Bootstrap nrog koj tus kheej cov cuab yeej kav los ntawm rub tawm peb qhov chaw Sass, JavaScript, thiab cov ntaub ntawv cov ntaub ntawv. Qhov kev xaiv no yuav tsum muaj qee yam cuab yeej ntxiv:

Yog tias koj xav tau peb cov cuab yeej tsim tag nrho , lawv suav nrog rau kev tsim Bootstrap thiab nws cov ntaub ntawv, tab sis lawv yuav tsis tsim nyog rau koj lub hom phiaj.

Download tau qhov twg los

Piv txwv

Yog tias koj xav rub tawm thiab tshuaj xyuas peb cov piv txwv , koj tuaj yeem rub cov piv txwv uas twb tau ua lawm:

Download piv txwv

CDN ntawm jsDelivr

Hla lub rub tawm nrog jsDelivr kom xa cached version ntawm Bootstrap's compiled CSS thiab JS rau koj qhov project.

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

Yog tias koj siv peb cov ntawv sau ua ke JavaScript thiab xav kom suav nrog Popper cais, ntxiv Popper ua ntej peb JS, ntawm CDN zoo dua.

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

Cov neeg saib xyuas pob

Rub hauv Bootstrap cov ntaub ntawv los rau hauv yuav luag txhua qhov haujlwm nrog qee tus thawj tswj hwm pob nrov tshaj plaws. Txawm hais tias tus thawj tswj pob, Bootstrap yuav xav tau Sass compiler thiab Autoprefixer rau kev teeb tsa uas phim peb cov ntawv sau ua ke.

npm

Nruab Bootstrap hauv koj Node.js powered apps nrog npm pob :

npm install [email protected]

const bootstrap = require('bootstrap')los yog import bootstrap from 'bootstrap'yuav thauj tag nrho Bootstrap's plugins mus rau ib bootstrapyam khoom. Lub bootstrapmodule nws tus kheej xa tawm tag nrho peb cov plugins. Koj tuaj yeem manually thauj Bootstrap's plugins ib tus zuj zus los ntawm kev thauj cov /js/dist/*.jsntaub ntawv hauv qab pob cov npe saum toj kawg nkaus.

Bootstrap's package.jsonmuaj qee cov metadata ntxiv nyob rau hauv cov yuam sij hauv qab no:

  • sass- txoj kev mus rau Bootstrap lub ntsiab Sass cov ntaub ntawv
  • style- txoj hauv kev rau Bootstrap's tsis-minified CSS uas tau muab tso ua ke siv lub neej ntawd nqis (tsis muaj customization)
Pib nrog Bootstrap ntawm npm nrog peb txoj haujlwm pib! Lub taub hau mus rau twbs/bootstrap-npm-starter template repository saib yuav ua li cas tsim thiab kho Bootstrap hauv koj tus kheej npm project. Xws li Sass compiler, Autoprefixer, Stylelint, PurgeCSS, thiab Bootstrap Icons.

xov

Nruab Bootstrap hauv koj Node.js powered apps nrog cov xov paj pob :

RubyGems

Nruab Bootstrap hauv koj Ruby apps siv Bundler ( pom zoo ) thiab RubyGems los ntawm kev ntxiv cov kab hauv qab no rau koj Gemfile:

gem 'bootstrap', '~> 5.2.1'

Xwb, yog tias koj tsis siv Bundler, koj tuaj yeem nruab lub pov haum los ntawm kev khiav cov lus txib no:

gem install bootstrap -v 5.2.1

Saib lub pov haum README kom paub meej ntxiv.

Tus sau

Koj tuaj yeem nruab thiab tswj Bootstrap's Sass thiab JavaScript siv Composer :

composer require twbs/bootstrap:5.2.1

NuGet

Yog tias koj txhim kho hauv .NET Framework, koj tuaj yeem nruab thiab tswj Bootstrap's CSS lossis Sass thiab JavaScript siv NuGet . Cov haujlwm tshiab yuav tsum siv libman lossis lwm txoj hauv kev raws li NuGet yog tsim los rau kev sau cov lej, tsis yog cov khoom muaj nqis pem hauv ntej.

Install-Package bootstrap
Install-Package bootstrap.sass