问题描述
当我们下载bootstrap时,bootstrap文件中的bootstrap.css和bootstrap-theme.css有什么区别?
What is the difference between bootstrap.css and bootstrap-theme.css found in the bootstrap file when we download bootstrap?
推荐答案
p> bootstrap.css
是BootStrap的核心css,用于定义各种控件/组件的所有样式,其中 bootstrap-theme.css
定义按钮,下拉菜单,导航栏,进度条,面板的主题(渐变/动画)。
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工作,但是对于渐变/动画,你可以使用 bootstrap-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
.
您可以在 http://getbootstrap.com/css/#buttons查看差异a>,然后单击固定菜单(右侧固定菜单)中的预览主题
You can see the difference on http://getbootstrap.com/css/#buttons and then click on Preview theme from the affix menu (fixed menu on right side)
这篇关于bootstrap.css和bootstrap-theme.css有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!