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.1.3 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 (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-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

Yog tias koj siv peb cov 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-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>

Cov neeg saib xyuas pob

Rub hauv Bootstrap cov ntaub ntawv los ntawm 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)

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.1.3'

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

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

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