可以尝试把html读入一个string,然后:
mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2;
mshtml.IHTMLElement body = doc.body as mshtml.IHTMLElement;
body.innerHTML = htmlstr;
mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2;
mshtml.IHTMLElement body = doc.body as mshtml.IHTMLElement;
body.innerHTML = htmlstr;
我也有同样的问题,不知如何优化