我如何删除<a> link which have specific class and title and also rmove the next span

时间:2017-07-05 12:20:53

标签: javascript html css css3

I am working on a third part web application. and inside the Breadcrumb navigation i will get something as follow:-

enter image description here

现在我要删除标题为KB的链接以及包含>的下一个范围

所以我的面包屑看起来如下: -

Info Hub > Home

而不是

Info Hub > kb > Home

所以任何人都可以在第一时间使用CSS来实现这个目标,如果不能用javascript做到的话呢?

1 个答案:

答案 0 :(得分:1)

&#13;
&#13;
.your-breadcrumb-wrapper span:nth-child(2),
.your-breadcrumb-wrapper span:nth-child(3) {
   display: none;
}
&#13;
&#13;
&#13;