link 打开一个新标签在 r shiny 应用程序的仪表板中不可见
link to open a new tab gets invisible in dashboard in r shiny app
在 r shiny 中,我添加了一个帮助 link 到一个 pdf 文件,单击它可以在新浏览器中打开。左边是标志,右边是link。在 运行 应用程序上,左侧的徽标清晰可见,但帮助 link 是 invisible.But 当光标悬停在浏览器右侧的那个位置时,它以淡色可见.但是,如果浏览器恢复正常,link 就会清晰可见。
下面是 ui 代码:
library(shiny)
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "flex_logo",
tags$li(class = "dropdown",
tags$p(h4(a("Help",target="_blank",href="Flex-Forecasting_Usage_Guidelines.pdf"),
style="font-weight: bold;color:red;")))
),
dashboardSidebar(
radioButtons("filetype", "Select file type",choices=c("csv file","xlsx file"))
),
dashboardBody()
)
这是服务器代码
shinyServer(function(input,output){
})
我希望 link 始终清晰可见。我可能在做一些非常基础的事情。
求推荐。
问题是您的 color:red
没有应用到您的锚点 a
标签!
修改后的代码:
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "flex_logo",
tags$li(class = "dropdown",
tags$a("Help",target="_blank",href="Flex-Forecasting_Usage_Guidelines.pdf",
style="font-weight: bold;color:red;"))
),
dashboardSidebar(
radioButtons("filetype", "Select file type",choices=c("csv file","xlsx file"))
),
dashboardBody()
)
在 r shiny 中,我添加了一个帮助 link 到一个 pdf 文件,单击它可以在新浏览器中打开。左边是标志,右边是link。在 运行 应用程序上,左侧的徽标清晰可见,但帮助 link 是 invisible.But 当光标悬停在浏览器右侧的那个位置时,它以淡色可见.但是,如果浏览器恢复正常,link 就会清晰可见。
下面是 ui 代码:
library(shiny)
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "flex_logo",
tags$li(class = "dropdown",
tags$p(h4(a("Help",target="_blank",href="Flex-Forecasting_Usage_Guidelines.pdf"),
style="font-weight: bold;color:red;")))
),
dashboardSidebar(
radioButtons("filetype", "Select file type",choices=c("csv file","xlsx file"))
),
dashboardBody()
)
这是服务器代码
shinyServer(function(input,output){
})
我希望 link 始终清晰可见。我可能在做一些非常基础的事情。
求推荐。
问题是您的 color:red
没有应用到您的锚点 a
标签!
修改后的代码:
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "flex_logo",
tags$li(class = "dropdown",
tags$a("Help",target="_blank",href="Flex-Forecasting_Usage_Guidelines.pdf",
style="font-weight: bold;color:red;"))
),
dashboardSidebar(
radioButtons("filetype", "Select file type",choices=c("csv file","xlsx file"))
),
dashboardBody()
)