-2
私はShinydashboardで以下のコードを管理しています。 縮小する方法はありますか?selectInputとnumericInputの間のスペースを減らす方法
- 図のように、selectInputとnumericInputの間のスペースはありますか?
- "type"と "interval"の間の垂直スペースselectInput?
- CSSを調整して解決策が良いでしょうmenuItemは「チャート」
の高さを狭めます。ありがとうございました。
コード:
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title = "Simple board"),
dashboardSidebar(
sidebarMenu(id = "S",
menuItem("Charts", tabName = "V", icon = icon("database","fa-lg")),
h5(div(style="display:inline-block;width:50%;text-align: left;",
selectInput("Q", label = "type", choices = c("A","B","C"))),
div(style="display:inline-block;width:50%;text-align: left;",
numericInput("NT", "Num", 15, min = 10, max = 33)),
selectInput("s2", label = "interval", choices = c("17 mins","38
min","124 mins"))
)
)
),
dashboardBody()
)
server <- function(input, output) {
}
shinyApp(ui, server)
コードを見てみましょう –
コードを表示しないと、どうすれば答えることができますか? –
私の悪いです。ここにMCVEがある: –