如何在 shinyApp 中将 border-radius 设置为 valueBox()?

How to set border-radius to valueBox() in shinyApp?

我想在 shinyApp 中为 设置 border-radius 20px

我已经尝试使用 ccs 样式 valueBox() 角落。我使用了库(shinyjs)。

valueBox(tag$p("", style = "font-size: 90%;", style = "border-radius: '1em';"), subtitle = div(img(src = "abc.jpg", height = "38", width = "70"), style = "text-align: center;"), width = 3)

我希望 valueBox 应该有 圆角 而不是 方形 。但是得到

Error in html: unused arguments (style = "font-size: 90%;", style = "border-radius: '1em';")

有人可以帮我解决这个问题吗?

非常感谢您的贡献。

这里是 'border-radius' 的示例代码:

fluidPage(tags$style(".small-box{border-radius: 15px}"),

                            valueBox("123", subtitle = "321", width = 3))

我在方框内放置了一些文字,而不是图片。

谢谢。