Shiny 在闪亮的R中更改字体大小和颜色不会';不行?
我正在尝试使用下面的代码(在ui.r中)更改ID为:Shiny 在闪亮的R中更改字体大小和颜色不会';不行?,shiny,shiny-server,shinydashboard,shinyjs,Shiny,Shiny Server,Shinydashboard,Shinyjs,我正在尝试使用下面的代码(在ui.r中)更改ID为:test\u type的siderbarPanel的字体大小和颜色,但它不起作用 tags$head(tags$style(“#test_type{颜色:红色; 字体大小:20px; 字体:斜体; }" ) ) 有什么想法吗 我假设您想要更改ui中输入字段元素的颜色和字体。你可以这样做: sidebarPanel( tags$head(tags$style(type="text/css", ".test_t
test\u type
的siderbarPanel的字体大小和颜色,但它不起作用
tags$head(tags$style(“#test_type{颜色:红色;
字体大小:20px;
字体:斜体;
}"
)
)
有什么想法吗 我假设您想要更改ui中输入字段元素的颜色和字体。你可以这样做:
sidebarPanel(
tags$head(tags$style(type="text/css",
".test_type {color: red;
font-size: 20px;
font-style: italic;}"
)
),
div(class="test_type",
textInput(inputId="ti1", label="Text Input 1", value = "test"))
)
但是,如果您希望自定义侧边栏面板本身,那么请进行检查
侧栏面板
没有id参数。你是说别的吗?