签名插件中将图像链接到URL不起作用

大家好,

我正在尝试在我们自托管的 Discourse 社区的签名中链接一张图片,但没有成功。您可以查看下面的图片以了解结果。

[[center][img]https://i.imgur.com/S2QKatV.gif[/img][/center]](https://domain.com/)

有人能告诉我如何让它正常工作吗?

提前感谢!

混合使用 markdown 和 BBCode 是一个悲伤的组合。

尝试使用

<a href="https://google.com">
  <img src="https://i.imgur.com/S2QKatV.gif">
</a>
4 个赞

谢谢,我该如何使用此 HTML 来居中图像?

<center>
  <a href="https://google.com">
    <img src="https://i.imgur.com/S2QKatV.gif">
  </a>
</center>

应该可以。

2 个赞

恐怕我试过了,但它没有居中对齐:(

试试这个:

<div align="center">
  <a href="https://google.com">
    <img src="https://i.imgur.com/S2QKatV.gif">
  </a>
</div>
3 个赞

非常感谢 @Lilly,这奏效了!

@Falco – 也非常感谢你的帮助。 :slight_smile:

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.