繁体   English   中英

如何在 R shiny 应用程序中调整 URL 的字体?

[英]How to adjust the font of an URL in an R shiny app?

我已使用以下代码在我的 shiny 应用程序中创建 URL 以在单击链接时打开 google

output$Reverse<- renderUI({
   tags$a(href="www.google.com", "Search") })

如何更改应用程序中单词搜索的字体大小和颜色。

我请求有人在这里帮助我。

只需使用 css 向 a-tag 添加样式参数:

library(shiny)

ui <- fluidPage(
  uiOutput("Reverse")
)

server <- function(input, output, session) {
  output$Reverse<- renderUI({
    tags$a(href="http://www.google.com", "Search", style = "font-size: 200px; color: red;")
    })
}

shinyApp(ui, server)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM