<strong
data-price-without-addons="€ 12"
data-price-with-parking=""
data-price-with-internet=""
data-price-with-internet-parking=""
data-component='track' data-track='mouseenter' data-hash='eDUfZZGbBVfXWMHBYWEISLJYbcNKNMC' data-stage='1'
class=" b-tooltip-with-price-breakdown-tracker rooms-table-room-price red-actual-rack-rate"
title=""
>
€ 12
</strong>
各位大家好,此代码在webbrowser1上。 我想得到'€12。
我试试这个,但这不起作用;
var element = webBrowser1.Document.GetElementsByTagName("strong")
.Cast<HtmlElement>()
.Where(ee => !String.IsNullOrEmpty(ee.GetAttribute("class")) &&
ee.GetAttribute("class") == " b-tooltip-with-price-breakdown-tracker")
.FirstOrDefault();
有人帮帮我吗?