我需要在表格中添加图片。可以吗?
同样的示例
这是可行的,但需要对 Markdown 进行一些微调。例如:
| normal | with theme component |
|---|---|
![]() |
![]() |
|normal|with theme component|
|--|--|
|  |  |
请注意,我不得不在图片的 Markdown 中使用反斜杠对管道符(|)进行“转义”,以免破坏表格结构。
或者,您也可以完全使用 HTML 来实现:
| Heading 1 | Heading 2 |
|---|---|
![]() |
![]() |
<table>
<thead>
<th>Heading 1</th><th>Heading 2</th>
</thead>
<tr>
<td><img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/7/b/7b8b5200494d19732663fe2dce2beefc5fc43a33.webp" width=200></td>
<td><img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/2/d/2d060e4a585c11b36bd976ab382b3196a384ef77.webp" width=200/></td>
</tr>
</table>
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.