//首先获取表格对象,需引入mshtml.dllIHTMLDocument2 document = webbrower.Document.DomDocument as IHTMLDocument2; IHTMLElementCollection tables = (IHTMLElementCollection)document.all.tags("TABLE");foreach (IHTMLTable table in tables){IHTMLTableSection tts= table.tHead;//因为TH标签是属于表格的表头信息;foreach(IHTMLElement th in tts.rows){ System.Diagnostics.Debug.WriteLine(th.innerText)//遍历输出内容}}