简体   繁体   中英

How to change the color of my navigation bar

Instead of a common navigation bar i use a primefaces tool called dock . I want to change its background color, i don't want the grey that comes by default. But i am confused:

I don't know what i should do.

Should i create some .css? If so, how i pass it to the component?

Do i need to hack the component source code in someway to achieve this?If so how can i change just what interests me without harming the component?

Could someone give me some tips how can i achieve my goal?

For the top bar on the page link is pointing to. you need to override following classes

ui-dock-top ui-widget & ui-dock-item-top

add style background-color:somevalue to change the color

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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