有人能告诉我如何在vb.net visual studio 2012中更改下拉列表的背景颜色吗?我有以下代码。
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Data.SqlClient
Imports System.Drawing
<DefaultProperty("DataTable"), _
ToolboxData("<{0}:DataDropDownList runat=server></{0}:DataDropDownList>")> _
Public Class DataDropDownList
Inherits System.Web.UI.WebControls.DropDownList
DataDropDownList.BackColor = System.Drawing.Color.Crimson
End Class
答案 0 :(得分:0)
你可以为这个DataDropDownList创建一个css样式,你怎么看?