C# 获取WebBrowser内容的高度
int webHeight =0;
WebBrowser web =new WebBrowser();
web.Navigate("about:blank");
while (web.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
web.Document.Write(listTestHtml[i].ToString());
webHeight = web.Document.Body.ScrollRectangle.Height;