1
我很困惑,我無法在documentation on HtmlElement中找到如何設置元素的類型。例如,我說我想如何設置元素的HtmlElement類型?
<a href="http://stackoverflow.com">Here's the coolest site ever.</a>
在哪裏設置的事實,那就是我想要的a
?
var mytag = new HtmlElement() { InnerText = "Here's the coolest site ever." };
mytag.SetAttribute("href", "http://stackoverflow.com");
mytag.WhatDoIPutHere = "a";
嘿! @steve是否嘗試過我建議的解決方案。它對你有幫助嗎? –