如何从最顶部垂直偏移 wellPanel?

How to vertically offset a wellPanel from the very top?

我的布局在 wellPanel 中只有一行和一列。我的目标是垂直偏移此面板。目前它已 "glued" 到最顶端,但应该会向下移动几厘米。

library(shiny)

ui <- fluidPage(
  wellPanel(fluidRow(column(width = 11, align = "center", h3("I need to move south!")))))

server <- function(input, output) {}

shinyApp(ui = ui, server = server)

您可以将 wellPanel() 包裹在 absolutePanel()

library(shiny)
ui <- fluidPage(
   absolutePanel(top = "50%", left = 20, width = "97.5%", 
            wellPanel(
              fluidRow(
                column(
                  width = 12,
                  align = "center", h3("I am at the centre!")
                )
              )
            )
 )
)

server <- function(input, output){}
shinyApp(ui, server)