【发布时间】:2015-05-11 16:22:52
【问题描述】:
我无法找到将downloadButton 与selectizeInput 底部对齐的方法,即,
library(shiny)
runApp(list(
ui = shinyUI(fluidPage(
fluidRow(align="bottom",
column(12, align="bottom",
h4("Download Options:"),
fluidRow(align="bottom",
column(6, selectizeInput("plot_dl", "File Type", width="100%",
choices = list("PDF"="pdf","PNG"="png"))),
column(3, downloadButton('plot1_dl', 'Left Plot')),
column(3, downloadButton('plot2_dl', 'Right Plot'))
)
)
),
tags$style(type='text/css', "#plot1_dl { width:100%; vertical-align:bottom}"),
tags$style(type='text/css', "#plot2_dl { width:100%;}")
)),
server = function(input, output) {
}
))
将align="bottom" 放置在任何地方和任何地方都不会引发错误消息,但也不会产生预期的效果。尝试使用按钮的样式标签,但我的深度不够。
【问题讨论】:
标签: html css r shiny fluid-layout