Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想footer从 html 源代码中删除部分。
footer
考虑以下情况,
<div id="footer">Blabla</div>
或者
<div class="footer">Blabla</div>
<footer>Blablabla</footer>
如何使用 XPath 匹配上述情况?
我会想出这样的事情:
//*[contains(lower-case(@*),'footer')] | //footer