DropDownList每项设置颜色


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

?观看生成的源文件,每个item就是一个option,可加style

<asp:DropDownList ID=”ddlColor” runat=”server”>
??? <asp:ListItem Text=”红” Value=”” style=”background-color:Red”></asp:ListItem>
????? </asp:DropDownList>