简体   繁体   English

如何使用不同的导航栏颜色?

[英]How do I have different Nav Bar Colours?

Shortened the question, sorry for the confusion, and broadness . 缩短了问题,对于困惑和宽广感到抱歉 Okay, so I would like the navigation bar to be transparent when I'm on a certain section , and a uniform colour for every other section on the page. 好的,所以我希望导航栏在我某个section时是透明的,而在页面上的每个其他部分都是统一的颜色。

So to summarise, one colour for the Nav Bar on a particular section or div . 总而言之,特定sectiondiv上导航栏的一种颜色。

I know I could probably use rgba , but I'm not sure how I could achieve assigning a new colour once the next section comes into view. 我知道我可以使用rgba ,但是我不确定在下一部分进入视图后如何分配新颜色。

I'm new to Bootstrap, so please, keep it simple. 我是Bootstrap的新手,所以请保持简单。

Any answers are appreciated. 任何答案都表示赞赏。

Here are the main colors and their usage : 以下是主要颜色及其用法:

#F8F8F8 : navbar background
#E7E7E7 : navbar border
#777 : default color
#333 : hover color (#5E5E5E for .nav-brand)
#555 : active color
#D5D5D5 : active background

Also, here is a link to the page i found it: Change navbar color in Twitter Bootstrap 3 此外,这里是我找到它的页面的链接: 在Twitter Bootstrap 3中更改导航栏颜色

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM