# 选定引用的背景颜色

**URL:** https://meta.discourse.org/t/selected-quote-background-color/277487
**Category:** Development
**Tags:** css
**Created:** [2023年九月1日 12:50 UTC](https://meta.discourse.org/t/selected-quote-background-color/277487 "2023-09-01T12:50:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年九月1日 14:09 UTC](https://meta.discourse.org/t/selected-quote-background-color/277487/2 "2023-09-01T14:09:40Z")

</div>

你好，

你可以通过以下指南轻松找到答案：

> [@Making custom CSS changes on your site](https://meta.discourse.org/t/make-css-changes-on-your-site/168101?u=canapin):
>
> bookmark This guide explains how to make CSS changes on your Discourse site, including an introduction to CSS, where to add CSS in Discourse, and how to find the right selectors using browser inspection tools. person_raising_hand Required user level: Administrator Summary This guide covers: A brief introduction to CSS and key concepts How to add CSS to your Discourse site using theme components Using browser inspection tools to find the right CSS selectors Understanding CSS basics C…

这将在未来帮助你。

关于你所问的内容，更改此特定部分的 CSS 代码如下。将默认值替换为你想要的任何颜色。🙂

```scss
.cooked span.highlighted {
    background-color: var(--tertiary-low);
}

```

我添加了 `.cooked` 选择器，因为我认为 `span.highlighted` 在论坛的其他部分也有使用。

---

_[View the full topic](https://meta.discourse.org/t/selected-quote-background-color/277487)._
