# 如何更改注册按钮的颜色

**URL:** <https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640>\
**Category:** Product Support\
**Created:** [2021 年12 月 1 日 06:24 UTC](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640 "2021-12-01T06:24:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
发布日期： [2021 年12 月 1 日 23:25 UTC](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640/6 "2021-12-01T23:25:41Z")

</div>

您可以在管理面板中编辑此特定文本：自定义 \> 文本

在搜索栏中输入：`js.tagging.selector_all_tags`  
然后验证文本

但是，从一般角度回答您的问题，编辑文本是可行的，但使用 CSS 会很棘手。我通常在 `::before` 或 `::after` 类中使用 `content` 选择器。

[https://www.w3schools.com/cssref/sel\_before.asp](https://www.w3schools.com/cssref/sel_before.asp)

如果我们没有编辑文本的可能性，我不是专家，但我会这样做。

首先，我隐藏“所有标签”文本：

```css
summary.tag-drop-header .name {
    font-size: 0;
}

```

然后，我创建一个新的 CSS 类，其中包含要添加的文本内容，并且我需要指定 `font-size` 来覆盖之前的设置：

```css
summary.tag-drop-header .name::after {
    content: "LFX Tools";
    font-size: 15px;
}

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-color-of-the-sign-up-button/210640)._
