[英]Changing the background color of an ASP DropDownList using only CSS
[英]Changing background color of dropdownlist
有人可以告訴我如何在vb.net visual studio 2012中更改dropdownlist的背景顏色嗎? 我有以下代碼。
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
您可以為此DataDropDownList創建CSS樣式,您對此有何看法?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.