# 在用户审批审核队列中隐藏除一个自定义字段外的所有字段

**URL:** <https://meta.discourse.org/t/hide-all-but-one-custom-field-in-the-user-approval-review-queue/151040>\
**Category:** Product Support\
**Created:** [2020 年5 月 11 日 12:15 UTC](https://meta.discourse.org/t/hide-all-but-one-custom-field-in-the-user-approval-review-queue/151040 "2020-05-11T12:15:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
发布日期： [2020 年5 月 18 日 07:25 UTC](https://meta.discourse.org/t/hide-all-but-one-custom-field-in-the-user-approval-review-queue/151040/8 "2020-05-18T07:25:24Z")

</div>

> [@awesomerobot](#):
>
> 我做了一个小改动，这样你的 `&:nth-of-type(1)` CSS 就能生效了，

我看到 Ember 的 div 已经消失了——谢谢。

不过，我仍然无法让 CSS 正常工作，它只是隐藏了所有内容。我尝试了几种变体；也许我做了什么愚蠢的事情。另外，我想知道如果它真的按我的目标生效了会怎样：难道第二个或第三个需要审批的人的所有字段都会被隐藏吗？

这是我尝试过的代码：

```plaintext
.reviewable-user-details.user-field {
    display: none;
            
    &:nth-of-type(1){
        display: block;
    }
}

```

---

_[View the full topic](https://meta.discourse.org/t/hide-all-but-one-custom-field-in-the-user-approval-review-queue/151040)._
