62,054
社区成员
发帖
与我相关
我的任务
分享
Text1.Attributes["onfocus"] = "alert(Text1.value)";
Button1.Attributes.Add("onclick", "alert('hello, world')");
Button1.Style.Add("background-color", "red");
//Example 3
Button1.Attributes["bgcolor"] = "lightblue";
给Attributes左边的元素的属性赋值。