可以为dropdownlist设置不同的颜色,使用Attribute实现
ddlCompany.Items[1].Attributes.Add("style", "background-color: red");ddlCompany.Items[2].Attributes.Add("style", "color: blue");
ddlCompany.Items[3].Attributes.Add("style", "color: yellow");
可以为dropdownlist设置不同的颜色,使用Attribute实现
ddlCompany.Items[1].Attributes.Add("style", "background-color: red");ddlCompany.Items[3].Attributes.Add("style", "color: yellow");