我尝试设置两个小部件之间的距离,column()中的offset = 0不起作用。有人可以帮我吗,我已经在这里呆了很多小时了!谢谢!
library(shiny)
ui <- fluidPage(
column(4,
fluidRow(
tags$head(
tags$style(type="text/css", "label{ display: table-cell; text-align: center; vertical-align: middle; } .form-group { display: table-row;}")
),
textInput(inputId = "txtInp", label = "Label = ")
)),
column(4,
fluidRow(
tags$head(
tags$style(type="text/css", "label{ display: table-cell; text-align: center; vertical-align: middle; } .form-group { display: table-row;}")
),
numericInput(inputId = "numInp", label = "X", value = 0)
))
)
server <- function(input, output){}
shinyApp(ui, server)