asp.net(vb)中,怎样在listbox中生成横向的滚动条

解决方案 »

  1.   

    ListBox在浏览器端的实现,SELECT,是个windowed control ,你无法控制生成水平滚动条,试着使用假的,譬如,参考Custom SelectBox
    http://webfx.eae.net/dhtml/select/jsGenerated.htmlhttp://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20959453.html
      

  2.   

    将listbox放在panel中,然后设置panel的水平宽度即可
      

  3.   

    <DIV style="Z-INDEX: 114; LEFT: 575px; OVERFLOW-X: scroll; WIDTH: 146px; POSITION: absolute; TOP: 255px; HEIGHT: 85px"
    ms_positioning="GridLayout">
    <asp:ListBox id="ListBox1" style="Z-INDEX: 115; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server">
    <asp:ListItem Value="11122223344555555">11122223344555555</asp:ListItem>
    </asp:ListBox></DIV>