发布:2014/8/1 23:44:52作者:管理员 来源:本站 浏览次数:1833
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlDocument objDoc = webBrowser1.Document;
HtmlElement obj = null;
for (int i = 0; i < objDoc.Body.All.Count; i++)//取出查看DIV标签
{
if (objDoc.Body.All[i].TagName.ToUpper().Equals("DIV"))
{
if (objDoc.Body.All[i].Id == "ramdomVisitDiv")
{
obj = objDoc.Body.All[i];
}
}
}
}
© Copyright 2014 - 2024 柏港建站平台 ejk5.com. 渝ICP备16000791号-4