也许是这样?
library(shiny)
library(shinydashboard)
ui <- dashboardPage(skin = "black",
dashboardHeader(title = "test"),
dashboardSidebar(
sidebarMenu(
menuItem("Complete", tabName = "comp"))),
dashboardBody(
inlineCSS(".form-group {margin-bottom: 0;}
.irs-with-grid {bottom: -30px;}
.irs-grid {height: 13px;}
.irs-grid-text {height: 0px;}
"
),
tabItems(
tabItem(tabName = "comp",
fluidRow(
sliderInput("range_var", "", value = 1, min = 1, max = 10, width = '100%'),
div(id="belowslider", style= "display:inline-block; width: 59%; background-color: green;", p()),
div(id="belowslider1", style= "display:inline-block; width: 40%; background-color: orange;", p())
)))))
server <- function(input, output, session) {
}
shinyApp(ui, server)