# 如何在帖子中添加点击展开内容

**URL:** <https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691>\
**Category:** Support\
**Created:** [2020年六月3日 13:11 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691 "2020-06-03T13:11:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharkdeng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sharkdeng/32/184854_2.png) [@sharkdeng](https://meta.discourse.org/u/sharkdeng)\
**Post date:** [2020年六月3日 13:11 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691/1 "2020-06-03T13:11:42Z")

</div>

你好，我想知道如何添加一个按钮，点击后可以在这里显示隐藏的转录内容。我看到内容支持 HTML。该怎么做呢？谢谢。

---

<div class="post-metadata">

**Author:** ![RiversideRocks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riversiderocks/32/178411_2.png) [@RiversideRocks](https://meta.discourse.org/u/RiversideRocks)\
**Post date:** [2020年六月3日 13:43 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691/2 "2020-06-03T13:43:49Z")

</div>

> **喜欢这样吗？**
>
> 这段文字将被隐藏

点击齿轮图标并选择“隐藏详情”。

---

<div class="post-metadata">

**Author:** ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)\
**Post date:** [2020年六月3日 15:18 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691/3 "2020-06-03T15:18:06Z")

</div>

是的，在撰写新帖子或编辑现有帖子时，点击帖子编辑器中的齿轮图标，将显示“隐藏详情”选项。

---

<div class="post-metadata">

**Author:** ![sharkdeng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sharkdeng/32/184854_2.png) [@sharkdeng](https://meta.discourse.org/u/sharkdeng)\
**Post date:** [2020年六月6日 11:49 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691/4 "2020-06-06T11:49:44Z")

</div>

完全正确！！！非常感谢！！！

---

<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:** [2020年七月6日 11:59 UTC](https://meta.discourse.org/t/how-to-add-click-to-expand-content-in-posts/153691/5 "2020-07-06T11:59:41Z")

</div>

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