bootstrap.css 和 bootstrap-theme.css 有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27400212/
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
What is the difference between bootstrap.css and bootstrap-theme.css?
提问by Lijin Durairaj
What is the difference between bootstrap.css and bootstrap-theme.css found in the bootstrap file when we download bootstrap?
我们下载bootstrap时在bootstrap文件中找到的bootstrap.css和bootstrap-theme.css有什么区别?
回答by Kishore Kumar
bootstrap.css
is the core css for BootStrap that defines all the style for various controls/components, where as bootstrap-theme.css
defines the themes (gradient/animation) for buttons,dropdown menu,navbar,progressbar,panels.
bootstrap.css
是 BootStrap 的核心 css,它定义了各种控件/组件的所有样式,其中 asbootstrap-theme.css
定义了按钮、下拉菜单、导航栏、进度栏、面板的主题(渐变/动画)。
Most of the times adding bootstrap.css
is enough for bootstrap to work, but for gradient/animation, you can use bootstrap-theme.css
.
大多数情况下,添加bootstrap.css
足以让引导程序正常工作,但对于渐变/动画,您可以使用bootstrap-theme.css
.
You can see the difference on http://getbootstrap.com/css/#buttonsand then click on Preview theme from the affix menu (fixed menu on right side)
您可以在http://getbootstrap.com/css/#buttons上看到不同之处,然后从词缀菜单(右侧的固定菜单)中单击预览主题