【发布时间】:2020-07-12 00:41:25
【问题描述】:
我有一个带有侧边栏菜单的闪亮仪表板。我想减少行之间的填充。有没有办法使用 css 或其他方法进行格式化?
代码如下:
menuItem("Lavaan",
tabName = "lavaan",
icon = icon("bar")),
conditionalPanel("input.sidebarmenu === 'lavaan'",
fluidRow(
splitLayout(cellWidths = c("auto", "auto", "auto"),
cellArgs = list(style = "padding: 0px"),
actionButton("add_btn", "+"),
actionButton("rm_btn", "-"),
p(strong("Latent Variables"))
)),
splitLayout(cellWidths = c("50%", "50%"),
cellArgs = list(style = "padding: 0px"),
uiOutput("textbox_ui"),
uiOutput("textbox_ui1")),
splitLayout(cellWidths = c("auto", "auto", "auto"),
cellArgs = list(style = "padding: 8px"),
p(strong("Regressions")),
actionButton("add_btn", "+"),
actionButton("rm_btn", "-"))
),
【问题讨论】:
-
您是否尝试过文档? shiny.rstudio.com/articles/css.html