How to remove string that dosn't have an html tag using CSS

后端 未结 5 1060
无人及你
无人及你 2021-01-17 23:09

I need to remove strings that do not have an html tag.

For example :

5条回答
  •  春和景丽
    2021-01-17 23:22

    You could use visibility:

    .A {
      visibility: hidden;
    }
    .A a {
      visibility: visible;
    }
    keep this and i want to remove this

    NOTE - of course this DOES NOT remove the string / element in question from the DOM itself, it merely hides it but achieves the same purpose.

提交回复
热议问题