# 隐藏创建账户表单中的全名字段

**URL:** <https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207>\
**Category:** Development\
**Created:** [2022 年7 月 7 日 14:05 UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207 "2022-07-07T14:05:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![mayfield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mayfield/32/261896_2.png) [@mayfield](https://meta.discourse.org/u/mayfield)\
发布日期： [2022 年7 月 7 日 15:39 UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207/2 "2022-07-07T15:39:12Z")

</div>

CSS 的 [`:has` 选择器](https://css-tricks.com/the-css-has-selector/) 可能适用于你的用例：

```plaintext
.input-group:has(#new-account-name) { ... }

```

---

_[View the full topic](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207)._
