我正在使用HtmlAgilityPack和C#,我可以选择具有id为foo的div元素。
var foos = from foo in htmlDoc.DocumentNode.Descendants("div")
where foo.Id == "foo"
select foo;
但是如何选择类名为“bar”的 div 元素?