gpt4 book ai didi

c# - 在 C# 中转换 "div"

转载 作者:太空宇宙 更新时间:2023-11-04 14:04:59 25 4
gpt4 key购买 nike

有没有办法转换以编程方式创建的 <DIV>为了获得属性 innerHtml?

 HtmlGenericControl div = new HtmlGenericControl("div");

我怎样才能得到 div.innerHTML

最佳答案

这行不通吗:

div.InnerHtml = "<b>hello</b>";

MSDN documentation

关于c# - 在 C# 中转换 "div",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14481914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com