[当我使用margin-left向左移动pickerInput元素到左边时,出现空白,我无法获得与页面其余部分相同的颜色。
我已经尝试了多种CSS配置的变化,但都注意到了工作原理>>
library(shinyWidgets) library(shiny) ui <- fluidPage( tags$style( HTML( " body{ background-color: grey; } button, select { margin-left: 90px; background-color: darkgrey; } ") ), fluidRow( pickerInput( inputId = "select1", label = "pickerInput", choices = c(3, 4, 8, 5, 2, 6, 7), options = list(title = "Please Select Desired Number") ) ) ) server <- function(input, output) { } shinyApp(ui = ui, server = server)
背景应该像页面的其余部分一样为灰色
[当我使用margin-left向左移动pickerInput元素时,出现空白,我无法获得与页面其余部分相同的颜色。我已经尝试过许多CSS的变化...
最好将pickerInput
包装在div标记内。