3

我已经尝试使用此代码在 Shiny Dashboard 中创建一个可点击的超链接,但由于某种原因图像没有显示(我得到一个问号类型的图标,但它是超链接的)

`dashboardBody(

tabItems(
tabItem("icratio",
        fluidRow(
          a(img(src="image.png"), href="https://google.com")

        )
)
 )
)`

可能是什么问题呢?

4

1 回答 1

2

放置tags$a应该可以。

tabItem("icratio",
    fluidRow(
      tags$a(img(src="image.png"), href="https://google.com")
    )
)
于 2017-03-13T04:30:44.267 回答