编译 Bootstrap
¥Compiled Bootstrap
下载后,解压压缩文件夹,你会看到类似这样的内容:
¥Once downloaded, unzip the compressed folder and you’ll see something like this:
bootstrap/
├── css/
│ ├── bootstrap-grid.css
│ ├── bootstrap-grid.css.map
│ ├── bootstrap-grid.min.css
│ ├── bootstrap-grid.min.css.map
│ ├── bootstrap-grid.rtl.css
│ ├── bootstrap-grid.rtl.css.map
│ ├── bootstrap-grid.rtl.min.css
│ ├── bootstrap-grid.rtl.min.css.map
│ ├── bootstrap-reboot.css
│ ├── bootstrap-reboot.css.map
│ ├── bootstrap-reboot.min.css
│ ├── bootstrap-reboot.min.css.map
│ ├── bootstrap-reboot.rtl.css
│ ├── bootstrap-reboot.rtl.css.map
│ ├── bootstrap-reboot.rtl.min.css
│ ├── bootstrap-reboot.rtl.min.css.map
│ ├── bootstrap-utilities.css
│ ├── bootstrap-utilities.css.map
│ ├── bootstrap-utilities.min.css
│ ├── bootstrap-utilities.min.css.map
│ ├── bootstrap-utilities.rtl.css
│ ├── bootstrap-utilities.rtl.css.map
│ ├── bootstrap-utilities.rtl.min.css
│ ├── bootstrap-utilities.rtl.min.css.map
│ ├── bootstrap.css
│ ├── bootstrap.css.map
│ ├── bootstrap.min.css
│ ├── bootstrap.min.css.map
│ ├── bootstrap.rtl.css
│ ├── bootstrap.rtl.css.map
│ ├── bootstrap.rtl.min.css
│ └── bootstrap.rtl.min.css.map
└── js/
├── bootstrap.bundle.js
├── bootstrap.bundle.js.map
├── bootstrap.bundle.min.js
├── bootstrap.bundle.min.js.map
├── bootstrap.esm.js
├── bootstrap.esm.js.map
├── bootstrap.esm.min.js
├── bootstrap.esm.min.js.map
├── bootstrap.js
├── bootstrap.js.map
├── bootstrap.min.js
└── bootstrap.min.js.map
这是 Bootstrap 最基本的形式:已编译的文件,可在几乎任何 Web 项目中快速插入使用。我们提供编译的 CSS 和 JS (bootstrap.*
),以及编译和缩小的 CSS 和 JS (bootstrap.min.*
)。源映射 (bootstrap.*.map
) 可与某些浏览器的开发者工具一起使用。打包的 JS 文件(bootstrap.bundle.js
和缩小的 bootstrap.bundle.min.js
)包括 Popper。
¥This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (bootstrap.*
), as well as compiled and minified CSS and JS (bootstrap.min.*
). Source maps (bootstrap.*.map
) are available for use with certain browsers’ developer tools. Bundled JS files (bootstrap.bundle.js
and minified bootstrap.bundle.min.js
) include Popper.
CSS 文件
¥CSS files
Bootstrap 包含一些选项,用于包含部分或全部我们编译的 CSS。
¥Bootstrap includes a handful of options for including some or all of our compiled CSS.
CSS files | Layout | Content | Components | Utilities |
---|---|---|---|---|
bootstrap.css bootstrap.min.css bootstrap.rtl.css bootstrap.rtl.min.css |
Included | Included | Included | Included |
bootstrap-grid.css bootstrap-grid.rtl.css bootstrap-grid.min.css bootstrap-grid.rtl.min.css |
Only grid system | — | — | Only flex utilities |
bootstrap-utilities.css bootstrap-utilities.rtl.css bootstrap-utilities.min.css bootstrap-utilities.rtl.min.css |
— | — | — | Included |
bootstrap-reboot.css bootstrap-reboot.rtl.css bootstrap-reboot.min.css bootstrap-reboot.rtl.min.css |
— | Only Reboot | — | — |
JS 文件
¥JS files
同样,我们可以选择包含部分或全部已编译的 JavaScript。
¥Similarly, we have options for including some or all of our compiled JavaScript.
JS Files | Popper |
---|---|
bootstrap.bundle.js bootstrap.bundle.min.js |
Included |
bootstrap.js bootstrap.min.js |
– |
Bootstrap 源代码
¥Bootstrap source code
Bootstrap 源代码下载包括已编译的 CSS 和 JavaScript 资源,以及源 Sass、JavaScript 和文档。更具体地说,它包括以下内容以及更多内容:
¥The Bootstrap source code download includes the compiled CSS and JavaScript assets, along with source Sass, JavaScript, and documentation. More specifically, it includes the following and more:
bootstrap/
├── dist/
│ ├── css/
│ └── js/
├── site/
│ └──content/
│ └── docs/
│ └── 5.3/
│ └── examples/
├── js/
└── scss/
scss/
和 js/
是我们的 CSS 和 JavaScript 的源代码。dist/
文件夹包含上面编译的下载部分中列出的所有内容。site/content/docs/
文件夹包含我们托管文档的源代码,其中包括 Bootstrap 使用的实时示例。
¥The scss/
and js/
are the source code for our CSS and JavaScript. The dist/
folder includes everything listed in the compiled download section above. The site/content/docs/
folder includes the source code for our hosted documentation, including our live examples of Bootstrap usage.
除此之外,任何其他包含的文件都提供对软件包、许可证信息和开发的支持。
¥Beyond that, any other included file provides support for packages, license information, and development.