Change hover-over font color of navbarPage menu bar in R Shiny
问题 I'm attempting to change the colour of the font when the mouse hovers over the options on the navbarPage menubar in an R Shiny app by using a CSS file with contents: .navbar-default:hover { color: #F2E836; background-color: #000000 !important; } However, this isn't working for me. Any guesses as to why? 回答1: Try this: .navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover { color: #F2E836 !important; background-color: #000000 !important; } Omit !important if the style