相关疑难解决方法(0)

如何为slidebar(sliderInput)着色?

我尝试为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)

r colors shiny

15
推荐指数
2
解决办法
5605
查看次数

闪亮 - 如何更改选择标签中的字体大小?

如何更改选择标签中的字体大小?

我尝试使用下面的代码,但字体大小根本没有变化.

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)

有任何想法吗?

r shiny

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

r ×2

shiny ×2

colors ×1