net中怎么去除listbox边框?谁知道麻烦说一下
<asp:ListBox ID="ListBox1" runat="server" style="height:286px; width:304px; border:0px"></asp:ListBox>这样去除不了

解决方案 »

  1.   

    写个样式.list
    {
    border-style:none;
    }
    下边应用就行了 <asp:ListBox ID="ListBox1" runat="server" Height="105px" Width="149px" CssClass="list"> 
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
            </asp:ListBox>
    测试ok
      

  2.   

    listBox 和Dropdowlist 的边框都是去不掉的.不管是用CSS文件,还是设定,都是有的.呵呵.
      

  3.   

    - -
    sorry我只看了设计,没有看运行
    更正:
    css修改不了