更新时间:2023-02-11 22:34:23
可以用很多方法完成.
如
使css并在运行时分配为
It can be done by many ways.
as
make css and assign at runtime as
Pabel1.CssClass = "someCssClass"
或
or
TextBox1.Style.Add("Background-color", "#ccc");
或
or
TextBox1.Attributes.Add("style", "Background-color:#ccc");