# 我的论坛不可见

**URL:** <https://meta.discourse.org/t/my-forum-is-invisible/359179>\
**Category:** Support\
**Created:** [2025年三月27日 17:24 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179 "2025-03-27T17:24:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)\
**Post date:** [2025年三月27日 17:24 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/1 "2025-03-27T17:24:56Z")

</div>

在我尝试学习如何在 Discourse 中进行编码时，我在 CSS 中输入了以下内容，导致我的论坛变得不可见：

```css
.ember-view {
  display:none
}

```

我想尝试移除一个放置在我容器上方的元素，当我想弄清楚是哪个元素时，我以为是 `.ember-view`。

结果我错了，现在我的整个论坛都看不见了。

我该怎么办？由于我在主题的 CSS 中插入了这段代码，管理员部分和网站都完全看不见了。

此致  
Olle

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2025年三月27日 17:45 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/2 "2025-03-27T17:45:30Z")

</div>

您可以通过访问 [https://yourforum.example.com/safe-mode](https://yourforum.example.com/safe-mode) 来使用安全模式。

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2025年三月27日 17:48 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/3 "2025-03-27T17:48:47Z")

</div>

您不是第一个遇到这种情况的人，这就是为什么有一个非常方便的工具：⬆

---

<div class="post-metadata">

**Author:** ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)\
**Post date:** [2025年三月27日 18:23 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/4 "2025-03-27T18:23:29Z")

</div>

谢谢！救命恩人！

有人知道这是哪个元素吗？它覆盖在我的 div.list-controls 上，从我非常业余（是的，我活该）的目光来看，它被称为 ember27、ember28、main-container 或 container。

我想删除的那一行位于此照片的蓝色线条内：

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/4/8/0/480b4de9881afa3cb0ebe7b7c730373e0555c684_2_690x28.png)

并且感谢 @RGJ 和 @merefield 的支持，拯救了我的一天。

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2025年三月27日 19:32 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/5 "2025-03-27T19:32:19Z")

</div>

您的照片不是很清晰（请给我您的论坛网址，我会看一下）。

经验法则是永远不要定位名为 `ember` 的东西，这些是自动生成的，非常通用，并且数字在每次构建时都可能并且将会更改。

---

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [2025年三月27日 23:18 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/6 "2025-03-27T23:18:31Z")

</div>

也许是这个？凭我的直觉。

```css
div.main-container > div:nth-child(1) {
  display: none;
}

```

---

<div class="post-metadata">

**Author:** ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)\
**Post date:** [2025年三月28日 11:31 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/7 "2025-03-28T11:31:51Z")

</div>

抱歉，这并没有帮助。我也删除了 `border: 2.4px;`，但也没有效果。

我正在与 Richard 和 Arkshine 就此事进行沟通。如果我们找到解决方案，我会在这里发布以供将来参考。

此致  
Olle

---

<div class="post-metadata">

**Author:** ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)\
**Post date:** [2025年三月28日 12:57 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/8 "2025-03-28T12:57:37Z")

</div>

@RGJ 找到了一种关于该行的解决方案，代码如下：

```css
#main-outlet > div.container {
  border: none;
}

```

祝大家周末愉快，

此致  
Olle

---

<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日 12:57 UTC](https://meta.discourse.org/t/my-forum-is-invisible/359179/9 "2025-04-27T12:57:44Z")

</div>

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