通过查看dash文档,我看不到任何用于在图像中嵌套超链接的语法或示例。本质上,我试图实现以下目标,但采用一种dash布局友好的格式(不管它使用的是html还是dash-core-component):
<a href="https://www.twitter.com/username">
<img alt="Link to my twitter" src="twitterlogo.png"
width=32" height="32">
</a>提前感谢任何帮助。
发布于 2021-04-23 09:19:16
我相信这将会奏效:
html.A(
href="https://www.twitter.com/username",
children=[
html.Img(
alt="Link to my twitter",
src="twitterlogo.png",
)
]
)https://stackoverflow.com/questions/67221522
复制相似问题