更新时间:2022-06-11 02:57:11
你差不多了:
http://msdn.microsoft.com/en-us/library /system.web.ui.htmlcontrols.htmlcontainercontrol.innertext(v=vs.85).aspx [ ^ ]
You are almost there:
http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontainercontrol.innertext(v=vs.85).aspx[^]
HtmlGenericControl htmlAnchor_div2 = new HtmlGenericControl("div");
htmlAnchor_div2.Attributes.Add("class", "image-title");
htmlAnchor_div2.InnerText = "Title #0";