我尝试为R闪亮的一些silderInput栏制作不同的颜色.它需要css等我在线看,只能找到如何制作一个silderInput.如何为不同的条形图创建几种不同的颜色?
这是我的测试代码.它将显示相同风格的所有栏:
ui <- fluidPage(
tags$style(type = "text/css", "
.irs-bar {width: 100%; height: 25px; background: black; border-top: 1px solid black; border-bottom: 1px solid black;}
.irs-bar-edge {background: black; border: 1px solid black; height: 25px; border-radius: 0px; width: 20px;}
.irs-line {border: 1px solid black; height: 25px; border-radius: 0px;}
.irs-grid-text {font-family: 'arial'; color: white; bottom: 17px; z-index: 1;}
.irs-grid-pol {display: none;}
.irs-max {font-family: 'arial'; color: black;}
.irs-min {font-family: 'arial'; color: black;}
.irs-single {color:black; background:#6666ff;}
.irs-slider {width: 30px; height: 30px; top: 22px;} …Run Code Online (Sandbox Code Playgroud) 如何更改选择标签中的字体大小?
我尝试使用下面的代码,但字体大小根本没有变化.
shinyUI(fluidPage(
sidebarPanel(
# Change the font size.
tags$style(type='text/css', "select {font-size: 32px !important} "),
# Species/ pollutant options
selectInput(
inputId = "species",
label = "Species:",
choices = c(...)
),
....
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?