# 横幅不透明度和禁用个人资料图片/头像

**URL:** <https://meta.discourse.org/t/banner-opacity-and-disabling-profile-pictures-avatars/159837>\
**Category:** UX\
**Created:** [2020年八月5日 00:31 UTC](https://meta.discourse.org/t/banner-opacity-and-disabling-profile-pictures-avatars/159837 "2020-08-05T00:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2020年八月6日 22:22 UTC](https://meta.discourse.org/t/banner-opacity-and-disabling-profile-pictures-avatars/159837/4 "2020-08-06T22:22:41Z")

</div>

太好了，这正是我需要的详细信息。

您需要添加一些自定义 CSS 来修复不透明度问题。最好将其添加到一个新的主题组件中（在“编辑 HTML/CSS \> CSS \> 通用”部分），然后将该主题组件添加到主主题中。这样，当主主题更新时，它不会被覆盖。

```css
.d-header {
  background: $header_background;
}

```

如果您需要帮助，这里有一些关于使用主题和主题组件的额外说明：[Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

---

_[View the full topic](https://meta.discourse.org/t/banner-opacity-and-disabling-profile-pictures-avatars/159837)._
