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.0.0 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-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 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.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 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.0.0'

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

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

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