Source

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 v4.2.1 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 (jQuery thiab Popper.js).

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:

  • Sass compiler (Libsass lossis Ruby Sass tau txais kev txhawb nqa) rau kev suav koj CSS.
  • Autoprefixer rau CSS vendor prefixing

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

Download tau qhov twg los

jsDelivr

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

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>

Yog tias koj siv peb cov ntaub ntawv sau ua ke JavaScript, tsis txhob hnov ​​​​qab suav nrog CDN versions ntawm jQuery thiab Popper.js ua ntej nws.

<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-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" 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 bootstrap

require('bootstrap')yuav thauj tag nrho Bootstrap's jQuery plugins mus rau jQuery khoom. Lub bootstrapmodule nws tus kheej tsis export dab tsi. Koj tuaj yeem manually thauj Bootstrap's jQuery plugins ib tus zuj zus los ntawm kev thauj cov /js/*.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 precompiled siv lub neej ntawd nqis (tsis muaj customization)

xov

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

yarn add bootstrap

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', '~> 4.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 4.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:4.2.1

NuGet

Yog tias koj tsim hauv .NET, koj tuaj yeem nruab thiab tswj Bootstrap's CSS lossis Sass thiab JavaScript siv NuGet :

Install-Package bootstrap
Install-Package bootstrap.sass