如何识别和编辑/移除 Ember 元素?

要隐藏其中某个部分,只需执行以下操作:

.user-secondary-navigation li:nth-child(3) {
  display: none;
}

将数字替换为您希望隐藏的部分序号。

显然,这仅在列表可预测时才有效,否则 CSS 将无法作为解决方案。

2 个赞