C# WebBrowser 中删除 HtmlElement
mshtml.IHTMLDOMNode node = this.mElementCurrent.DomElement as mshtml.IHTMLDOMNode;if (node != null)
{
node.parentNode.removeChild(node);
}代码嘛就上面的几行,不过这需要引用mshtml。
mshtml.IHTMLDOMNode node = this.mElementCurrent.DomElement as mshtml.IHTMLDOMNode;if (node != null)
{
node.parentNode.removeChild(node);
}代码嘛就上面的几行,不过这需要引用mshtml。