111,120
社区成员
发帖
与我相关
我的任务
分享
private void GetImagesSrc()
{
HtmlElement htmlEle = webBrowser1.Document.GetElementById("list-itemList");
HtmlElementCollection htmlCollection = htmlEle.GetElementsByTagName("img");
foreach (HtmlElement var in htmlCollection)
{
richTextBox1.AppendText(var.GetAttribute("src") + "\r\n");
}
}
忘了 我去试试