问题描述
我正在学习为期一个月的 Rails 课程,在其中一课中,我们被告知要将一些内容从默认更改为反向.他没有解释为什么或它的意义是什么.如果有人能向我解释,那就太棒了.
I'm doing the one month rails class and in one of the lessons we're told to change some stuff from default to inverse. He doesn't go over why or whats the significance of it. If someone could explain to me that would be awesome.
这里有一个例子:nav class="navbar navbar-inverse" role="navigation"
vs nav class="navbar navbar-default role="navigation"
Heres an example: nav class="navbar navbar-inverse" role="navigation"
vs nav class="navbar navbar-default role="navigation"
推荐答案
样式类 (CSS) 负责配置元素的视觉外观.
Styling classes (CSS) are responsible for configuring the visual look and feel of the elements.
将 navbar-default
更改为 navbar-inverse
只会将导航栏的外观从明亮的调色板更改为深色.
Changing navbar-default
to navbar-inverse
simply changes the look of the navigation bar from bright to dark color palette.
您可以在这里查看:https://getbootstrap.com/docs/3.4/components/#navbar-inverted
这篇关于default 和 inverse 有什么区别?(引导程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!