Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何从 id 以字符串开头并以另一个字符串结尾的 html 页面获取元素。也许您会通过以下示例得到我的问题:
HTML:
<a href="#" onClick="" id="olla{randomtext}:id23">text</a>
结果:
I would like to click on links where id is like olla{randomtext}:id
有没有可能的解决方案?
HtmlElement elementid; elementid.Id="Your id" //focus to selected id webbrowser.Document.GetElementById(ElementId).ScrollIntoView(true);