如何删除不使用CSS的HTML标签的字符串 [英] How to remove string that dosn't have an html tag using CSS
本文介绍了如何删除不使用CSS的HTML标签的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要删除没有 html
标签的字符串。
I need to remove strings that do not have an html
tag.
例如:
<div class="A">
<a href="#" class="link">keep this</a> and i want to remove this
</div>
推荐答案
也许你可以使用 font-size
::
Maybe you can use font-size
::
.A {
font-size: 0;
}
.A a {
font-size: 20px;
}
<div class="A">
<a href="#" class="link">keep this</a> and i want to remove this
</div>
这篇关于如何删除不使用CSS的HTML标签的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文