简体   繁体   English

在R Shiny中更改navBar颜色

[英]Change navBar color in R Shiny

Is there a way to change the color of the navBar in a fluidPage that contains the navbarPage while also changing the background color of the page itself? 有没有办法在包含navbarPage的fluidPage中更改navBar的颜色,同时还更改页面本身的背景颜色? For example, I'd like to change the color of my navBar to green, but the color of the rest of the entire page to light grey. 例如,我想将navBar的颜色更改为绿色,但将整个页面其余部分的颜色更改为浅灰色。

You can use css to change look and layout. 您可以使用CSS更改外观和布局。

fluidPage(theme = "styles.css",...)

or 要么

tags$head(
     tags$link(rel = "stylesheet", type = "text/css", href = "style.css")
),

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

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