# 在Discourse帖子中嵌入/嵌入Canva设计

**URL:** https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156
**Category:** Support
**Created:** [2025年三月27日 14:48 UTC](https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156 "2025-03-27T14:48:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2025年三月27日 14:48 UTC](https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156/1 "2025-03-27T14:48:15Z")

</div>

您好

我希望将Canva设计嵌入到论坛帖子中；但是，尽管我使用的是与其他网站嵌入/iframe相同的“iframe”HTML代码，但它对Canva设计不起作用。

例如，这可以正常工作：

```plaintext
<iframe width="100%" height="475px"
    src="https://meta.discourse.org/c/documentation/10">
  </iframe>

```

（前提是我已在站点设置中将其添加到允许的iframe列表中）

但是，对于Canva设计，即使我已将“[https://www.canva.com/design/\*”添加到允许的iframe列表中，它们也无法正常工作：](https://www.canva.com/design/*%E2%80%9D%E6%B7%BB%E5%8A%A0%E5%88%B0%E5%85%81%E8%AE%B8%E7%9A%84iframe%E5%88%97%E8%A1%A8%E4%B8%AD%EF%BC%8C%E5%AE%83%E4%BB%AC%E4%B9%9F%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%EF%BC%9A)

```plaintext
<iframe width="100%" height="475px"
    src="https://www.canva.com/design/DAGi7rMbwQI/DL_b2qdGHZhErapcUnzRlQ/view?embed">
  </iframe>

```

它应该显示为这样：

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/9/c/f9c125ef8c91ebf8c2902e2020a7771071af3855.jpeg)

但实际上是空白的（iframe未渲染）。

您知道为什么会发生这种情况以及如何实际嵌入Canva设计吗？这是Canva的参考链接：[https://www.canva.com/help/embed-designs/](https://www.canva.com/help/embed-designs/)

谢谢！

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025年三月27日 15:02 UTC](https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156/3 "2025-03-27T15:02:35Z")

</div>

您好，

请允许在设置中也使用 `https://canvas.com/`。

该网站会从 `www.canvas.com` 重定向到 `canvas`。

仅允许 `https://www.canvas.com/` 将无法正常工作。

 ![一台笔记本电脑显示着多人视频通话，放在桌子上，旁边还有一个马克杯。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/8/9/7/897af114ded17b3a3326fca0b4abb7923d1074d3.jpeg)

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2025年三月28日 20:41 UTC](https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156/4 "2025-03-28T20:41:52Z")

</div>

您好 @Arkshine

非常感谢！是的，修复 iframe 设置中的 URL 解决了问题。我很高兴您能帮到我。再次感谢！！ 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025年四月27日 20:41 UTC](https://meta.discourse.org/t/iframe-embed-canva-designs-in-discourse-posts/359156/5 "2025-04-27T20:41:55Z")

</div>

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