twitter-bootstrap bootstrap 4 - 何时使用重启 css 和网格 css?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42822724/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
bootstrap 4 - When to use reboot css and grid css?
提问by Vimalan Jaya Ganesh
I am trying to migrate my application from bootstrap 3.3.7 to Bootstrap v4.0.0-alpha.6.
我正在尝试将我的应用程序从 bootstrap 3.3.7 迁移到 Bootstrap v4.0.0-alpha.6。
When I downloaded the Bootstrap v4.0.0-alpha.6 into my project using NuGet, I saw bootstrap-reboot.css and bootstrap-grid.css in addition to bootstrap.css.
当我使用 NuGet 将 Bootstrap v4.0.0-alpha.6 下载到我的项目中时,除了 bootstrap.css 之外,我还看到了 bootstrap-reboot.css 和 bootstrap-grid.css。
I tried to go through the document and understand their purpose but, I am not getting a clear picture.
我试图通读文档并了解它们的目的,但是,我没有得到清晰的画面。
What is the use of those two css files? Do I really need to include them in my project?
这两个css文件有什么用?我真的需要将它们包含在我的项目中吗?
回答by Liam Hammett
bootstrap.cssshould contain all the CSS you need to use Bootstrap in your project.
bootstrap.css应该包含在项目中使用 Bootstrap 所需的所有 CSS。
The files bootstrap-reboot.cssand bootstrap-grid.cssare cut down versions containing just the necessary styles for reboot and Bootstrap's flexbox grid respectively. They are to be used if you don't want to include the entirety of Bootstrap in your project and will only be making use of either of these features.
这些文件bootstrap-reboot.css和bootstrap-grid.css被删减的版本分别只包含重启和 Bootstrap 的 flexbox 网格所需的样式。如果您不想在项目中包含整个 Bootstrap 并且只会使用这些功能中的任何一个,则可以使用它们。
The docs explain it here: https://getbootstrap.com/docs/4.1/getting-started/contents/#css-files
文档在这里解释:https: //getbootstrap.com/docs/4.1/getting-started/contents/#css-files


