asp.net中 checkboxList 的勾选默认是绿色,怎么让勾选色为红色 
请各位指点哈,有高手建议我用图片。但是不知道怎么下手,有做过这方面的。帮我提供点原代码。。  感激!!!!!!!!

解决方案 »

  1.   

    你去参考一下这个吧
    http://dotnet.aspx.cc/ShowDetail.aspx?id=F2EF5E7F-E35E-4FF3-952E-4F8CF239FB88
      

  2.   

    yb1124:
    Your link is for win.he is asking for the web controls.
      

  3.   

    This case should apply pic.
      

  4.   

    <HEAD>
    <title>WebForm2</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script  type="text/javascript">
    function switchChecked()
    {
    var obj = document.getElementById("imgTest");
    if(obj.src == 'http://localhost/WebApplication2/checked.jpg')
    {
    obj.src = 'http://localhost/WebApplication2/unchecked.jpg'
    }
    else if(obj.src == 'http://localhost/WebApplication2/unchecked.jpg')
    {
    obj.src = 'http://localhost/WebApplication2/checked.jpg'
    }
    }
    </script>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <div><img id="imgTest" src="unchecked.jpg" style="WIDTH:15px;HEIGHT:15px" onclick="switchChecked();">Test
    </div>
    </form>
    </body>
      

  5.   

    在checkboxlist的属性里没有找到相关的
    看来只能用图片了
    试试ls的方法吧