# 更改脚注背景的颜色

**URL:** https://meta.discourse.org/t/change-colour-of-footnote-background/229809
**Category:** Support
**Tags:** footnote
**Created:** [2022年五月18日 00:13 UTC](https://meta.discourse.org/t/change-colour-of-footnote-background/229809 "2022-05-18T00:13:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Cozdabuch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cozdabuch/32/139120_2.png) [@Cozdabuch](https://meta.discourse.org/u/Cozdabuch)
#### Post date: [2022年五月18日 00:13 UTC](https://meta.discourse.org/t/change-colour-of-footnote-background/229809/1 "2022-05-18T00:13:46Z")

</div>

有人能提供一段 CSS 代码来更改内联脚注的背景颜色吗？

如果它在维基（通过主题组件）帖子中使用，帖子和在线注释的背景颜色是相同的。所以它们融合得很好。

选项 1：如果帖子是维基，将内联的背景颜色更改为新值

选项 2：仅将内联的背景颜色更改为新值

---

<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年五月18日 10:34 UTC](https://meta.discourse.org/t/change-colour-of-footnote-background/229809/2 "2022-05-18T10:34:43Z")

</div>

我恐怕我的 CSS 仍然相当基础，但我想你可以用类似以下的方式来定位内嵌工具提示的背景：

```css
#footnote-tooltip {
	background: violet;
}

```

---

<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: [2022年十月27日 11:37 UTC](https://meta.discourse.org/t/change-colour-of-footnote-background/229809/3 "2022-10-27T11:37:08Z")

</div>

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