我正在try 将动作按钮的 colored颜色 从灰色更改为橙色.
actionButton("run","Run Analysis")
(这是server.R
分.)有可能改变它的 colored颜色 吗?
我正在try 将动作按钮的 colored颜色 从灰色更改为橙色.
actionButton("run","Run Analysis")
(这是server.R
分.)有可能改变它的 colored颜色 吗?
正如你在应用中提到的那样,你可以使用@tags$head
嵌入你的CSS.试试这个:
library(shiny)
ui <- shinyUI(fluidPage(
tags$head(
tags$style(HTML('#run{background-color:orange}'))
),
actionButton("run","Run Analysis")
))
server <- shinyServer(function(input, output) {
})
shinyApp(ui, server)
如果你不熟悉CSS,w3schools有非常好的简单教程.