mshtml.IHTMLDOMNode node = this.mElementCurrent.DomElement as mshtml.IHTMLDOMNode;
if (node != null)
{
node.parentNode.removeChild(node);
}

代码嘛就上面的几行,不过这需要引用mshtml。

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-12-26
  • 2021-07-16
  • 2022-12-23
  • 2022-01-26
  • 2021-10-18
猜你喜欢
  • 2021-09-06
  • 2021-06-10
  • 2021-08-02
  • 2022-12-23
  • 2021-07-24
  • 2022-01-16
  • 2021-11-18
相关资源
相似解决方案