Css 如何添加浏览按钮应用程序的链接
我想知道如何将“示例文件”添加到shiny应用程序的浏览按钮中,使其对齐良好? 我找到了使用标记$..的示例。。。。但链接未与浏览器按钮正确对齐。我的结果: 我希望它是这样的: 我的代码:Css 如何添加浏览按钮应用程序的链接,css,shiny,text-alignment,Css,Shiny,Text Alignment,我想知道如何将“示例文件”添加到shiny应用程序的浏览按钮中,使其对齐良好? 我找到了使用标记$..的示例。。。。但链接未与浏览器按钮正确对齐。我的结果: 我希望它是这样的: 我的代码: tags$a(href ="data/INPUT.txt", target="_blank", "EXAMPLE_test"), fileInput(inputId = "InputFile", label = "Choose File",
tags$a(href ="data/INPUT.txt",
target="_blank",
"EXAMPLE_test"),
fileInput(inputId = "InputFile",
label = "Choose File",
multiple = TRUE,
accept = c("text",
"text/comma-separated-values,text/plain",
".txt") )
感谢您的帮助。
谢谢。我希望这就是你想要实现的目标
ui <- shinyUI(fluidPage(
fileInput(inputId = "InputFile",
label = tags$a(href = "data/INPUT.txt",
target = "_blank",
"EXAMPLE_test"),
multiple = TRUE,
accept = c("text",
"text/comma-separated-values,text/plain",
".txt") )
)
)
ui我希望这就是您想要实现的目标
ui <- shinyUI(fluidPage(
fileInput(inputId = "InputFile",
label = tags$a(href = "data/INPUT.txt",
target = "_blank",
"EXAMPLE_test"),
multiple = TRUE,
accept = c("text",
"text/comma-separated-values,text/plain",
".txt") )
)
)
ui谢谢,这正是我想要的。谢谢,这正是我想要的。