Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 将fileinput进度条颜色更改为渐变_R_Shiny_Rstudio_Shiny Server_Rstudio Server - Fatal编程技术网

R 将fileinput进度条颜色更改为渐变

R 将fileinput进度条颜色更改为渐变,r,shiny,rstudio,shiny-server,rstudio-server,R,Shiny,Rstudio,Shiny Server,Rstudio Server,在我的fileinput进度条中添加渐变颜色时遇到问题 现在,我可以使用这里提供的代码将进度条的颜色从普通的蓝色更改为其他颜色 ui尝试从预定义的调色板创建颜色渐变: 要在CSS中设置渐变,属性是背景图像,而不是背景颜色。您还必须将背景大小设置为自动,否则它将设置为40px 40px,并且进度条将条带化。以下是CSS: tags$head( tags$style( ".progress-bar { background-image: linear-gr

在我的fileinput进度条中添加渐变颜色时遇到问题

现在,我可以使用这里提供的代码将进度条的颜色从普通的蓝色更改为其他颜色


ui尝试从预定义的调色板创建颜色渐变:

要在CSS中设置渐变,属性是
背景图像
,而不是
背景颜色
。您还必须将
背景大小
设置为
自动
,否则它将设置为
40px 40px
,并且进度条将条带化。以下是CSS:

  tags$head(
    tags$style(
      ".progress-bar {
          background-image: linear-gradient(to right, red , yellow) !important;
          background-size: auto !important;
      }")
  )
  tags$head(
    tags$style(
      ".progress-bar {
          background-image: linear-gradient(to right, red , yellow) !important;
          background-size: auto !important;
      }")
  )