【发布时间】:2015-08-12 10:18:46
【问题描述】:
如何将下拉菜单(选择标签)的尺寸变小?我认为是填充使下拉菜单看起来“厚”。所以我将填充更改为 0 以使其“变薄”,显然这不起作用,
shinyUI(fluidPage(
sidebarPanel(
# Change the font size.
tags$style(type='text/css', " .selectize-input, .selectize-dropdown { padding:0 ; }"),
# Species/ pollutant options
selectInput(
inputId = "species",
label = "Species:",
choices = c(...)
),
....
结果很尴尬,
有什么想法吗?
【问题讨论】:
-
没有跨浏览器的解决方案来设置大多数表单元素的样式,其中
<select>、<input type="radio" />和<input type="checkbox" />仅使用 CSS。