# 更改特定文本颜色所需的正确 CSS 位置求助

**URL:** https://meta.discourse.org/t/help-with-locating-the-correct-css-location-to-change-color-of-specific-text/392427
**Category:** Development
**Created:** [2025年十二月30日 23:03 UTC](https://meta.discourse.org/t/help-with-locating-the-correct-css-location-to-change-color-of-specific-text/392427 "2025-12-30T23:03:03Z")
**Posts on this page:** 1
**Showing post:** 3

<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年十二月31日 10:10 UTC](https://meta.discourse.org/t/help-with-locating-the-correct-css-location-to-change-color-of-specific-text/392427/3 "2025-12-31T10:10:04Z")

</div>

侧边栏中新/未读主题的点可以像这样着色：

```css
span.sidebar-section-link-suffix.icon.unread svg {
  color: red !important;
}

```

对于新主题的主题点，请使用：

```css
a.badge-notification.new-topic::before {
  background-color: red !important;
}

```

如果要定位通知菜单中的图标，可以使用以下 CSS：

```css
div.tabs-list a.user-menu-tab svg {
  color: red !important;
}

```

如果要仅定位通知菜单中处于活动状态的图标，请使用：

```css
div.tabs-list a.user-menu-tab.active svg {
  color: red !important;
}

```

要定位悬停时的整个通知，请使用：

```css
div.quick-access-panel ul li:hover {
  background-color: red !important;
}

```

希望这有帮助！

---

_[View the full topic](https://meta.discourse.org/t/help-with-locating-the-correct-css-location-to-change-color-of-specific-text/392427)._
