Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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
Html 如何更改帮助文本的颜色_Html_Css_R_Shiny - Fatal编程技术网

Html 如何更改帮助文本的颜色

Html 如何更改帮助文本的颜色,html,css,r,shiny,Html,Css,R,Shiny,我需要将帮助文本的颜色更改为闪亮。我使用的方法与我在许多其他类型的文本中使用的方法相同,但它不适用于此。下面是我试图开始工作的代码片段,包括注释掉的失败尝试。任何想法都将不胜感激 #tagList( # tags$style(HTML(".help-block a {color: black;}")), tags$style('#assignFlagHelpText .help-block a {color: black}'), div(id = 'assi

我需要将帮助文本的颜色更改为闪亮。我使用的方法与我在许多其他类型的文本中使用的方法相同,但它不适用于此。下面是我试图开始工作的代码片段,包括注释掉的失败尝试。任何想法都将不胜感激

#tagList(
  # tags$style(HTML(".help-block a {color: black;}")),
  tags$style('#assignFlagHelpText .help-block a {color: black}'), 
    div(id = 'assignFlagHelpText',
      helpText('For grouped variables that depend on 1 sensor (i.e., wind speed/direction), 
                if one variable is bad, they likely all are.  In that case, use this button.')
),
#),

编辑:我已经查看了下面选择的问题和答案,但要么它对我不起作用,要么我不知道如何根据我的目的正确修改它。我试过几种方法。

侧边栏、标题或正文中的帮助文本可以很好地工作。试试这个

library(shiny)
library(shinydashboard)
library(shinydashboardPlus)

  ui = dashboardPagePlus(
    tags$head(
      tags$style(HTML(".help-block a {color: red !important;}")),
    ),

    
    header = dashboardHeaderPlus(
      left_menu = tagList(
        
        helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
                if one variable is bad, they likely all are.  In that case, use this button.'))
      )
    ),
    sidebar = dashboardSidebar(
      helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
                if one variable is bad, they likely all are.  In that case, use this button.'))
    ),
    body = dashboardBody(
      helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
                if one variable is bad, they likely all are.  In that case, use this button.'))
    ),
  )
  server = function(input, output) { }
  shinyApp(ui,server)

这是否回答了您的问题?我看了那个问题和答案,但它对我没有帮助,因为我不知道如何修改我所做的,他们在做什么。这个帮助文本在wellPanel中。这句话的语法是什么?对不起,如果这是显而易见的,但对我来说不是。谢谢你,我终于知道事情的发展方向了。谢谢。只需将帮助文本包装在wellPanel中。我对它进行了测试,效果良好。