# Discourse 中的 Lightbox 不起作用

**URL:** https://meta.discourse.org/t/lightbox-not-working-on-discourse/220494
**Category:** Support
**Created:** [2022年三月9日 05:15 UTC](https://meta.discourse.org/t/lightbox-not-working-on-discourse/220494 "2022-03-09T05:15:18Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2022年三月10日 12:04 UTC](https://meta.discourse.org/t/lightbox-not-working-on-discourse/220494/7 "2022-03-10T12:04:04Z")

</div>

我一直在测试这个。🖐🙂

我从 OP 的示例主题中抓取到的图片在我的测试站点上运行良好，但在浏览器检查器中比较代码时，我的图片会获得一个 `lightbox-wrapper`，而 @3DPB 的图片则没有。我尝试调整了一些设置，但到目前为止还没有效果。

你可以检查一下你的 `create thumbnails` 和 `composer media optimization image enabled` 管理设置，以确保（并确认我们在任何测试中都有类似的设置）🙂

到目前为止，我发现的唯一一个有类似问题的帖子是[这个](https://meta.discourse.org/t/lightbox-not-being-applied/141032/6)，但解决方案是重启一个新的实例，这神奇地解决了问题，所以和已经提供的解决方案一样。

到目前为止，这是一个相当令人沮丧的问题，难以复制/解决。🙂

---

_[View the full topic](https://meta.discourse.org/t/lightbox-not-working-on-discourse/220494)._
