我在一个闪亮的应用程序上有很多生成的输入字段,我想通过降低dateinput
字段的高度使其更密集。但是,height标签只会缩小框并使其溢出到下一个输入中。那么,如何缩小dateInput()
字段,使其仅比文本字段高一点?
library(shiny)
ui <- fluidPage(
tags$style(".shiny-date-input {height : 30px;}")
,dateInput("date1","date1")
,dateInput("date2","date2")
,textInput("text","text")
)
shinyApp(ui, function(input, output, session){})