【发布时间】:2016-03-16 15:15:39
【问题描述】:
1 ) 我们如何将selectInput 定位在另一个旁边?我试过了:
# style.css
.general {
display: inline-block;
margin-left: auto;
margin-right: auto;
height: auto;
width : auto ;
white-space: nowrap ;}
# ui.R
...
tags$div(class = "general", selectInput(...), selectInput(...))
...
但它不起作用。
2) 我们如何将selectInput 的标签放置在selectInput 本身旁边?我找到了这个话题Positioning Shiny widgets beside their headers
但这是为应用程序的所有selectInput 设计的。我没有设法将tags$style(...) 中提供的代码仅用于我的应用程序的一个selectInput,而不是全部。我们该怎么做呢?
谢谢。
【问题讨论】:
标签: css r widget position shiny