12.3. 选项 A:CSS
例如,尝试从 Dashboard 页面隐藏最新的元素。在第一步中,您将其 CSS 路径识别为:
#three-scale .dashboard_bubble
请记住,这是第二个框,它具有相同的路径,因此您将使用"+"选择器。现在,您的路径如下:
.main_layout #three-scale .dashboard_bubble + .dashboard_bubble /* or */ .main_layout #three-scale .dashboard_bubble:nth-child(1)
将 display 属性改为 none 使该框不可见:
.main_layout #three-scale .dashboard_bubble:nth-child(1) { display: none; }