gja*_*bel 19 html css r fluid-layout shiny
我无法想出一种downloadButton
与a 底对齐的方法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) {
}
))
Run Code Online (Sandbox Code Playgroud)
放置align="bottom"
在任何地方和任何地方不会抛出错误消息,但也没有产生预期的效果.尝试使用按钮的样式标签,但我的深度.
gja*_*bel 22
margin-top: 25px
在样式标记中找到了一个临时修复程序...
library(shiny)
runApp(list(
ui = shinyUI(fluidPage(
h4("Download Options:"),
fluidRow(
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%; margin-top: 25px;}"),
tags$style(type='text/css', "#plot2_dl { width:100%; margin-top: 25px;}")
)),
server = function(input, output) {
}
))
Run Code Online (Sandbox Code Playgroud)
r4n*_*4lk 13
其他方法是style
在列函数中传递参数.
runApp(list( ui = shinyUI(fluidPage( h4("Download Options:"), fluidRow( column(6, selectizeInput("plot_dl", "File Type", width="100%", choices = list("PDF"="pdf","PNG"="png"))), column(3, style = "margin-top: 25px;", downloadButton('plot1_dl', 'Left Plot')), column(3, style = "margin-top: 25px;", downloadButton('plot2_dl', 'Right Plot')) ) )), server = function(input, output) { } ))
归档时间: |
|
查看次数: |
9909 次 |
最近记录: |