http://CC318.com

一个程序的窝

我的窝窝 http://CC318.com 这里有更多内容,不信你试试.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
using mshtml; 这个要你手动添加引用出来 仔细找找。名字我一下也记不得了

然后 获得Ihtmldocument2 接口

IHTMLDocument2 doc = new HTMLDocumentClass();
doc.write(new object[] { html });
doc.close();


再然后就和你用javascript类似了



foreach (IHTMLImgElement image in doc.images)
{
IHTMLElement element = (IHTMLElement)image;
string src = (string)element.getAttribute("src", 2);
if (src != null)
{
//读出属性 这个你没有问题吧?

http://CC318.com