你的位置:首页 > 网页设计

[网页设计]listBox左右移动


 1 <div style="width:200px; float:left;">  2   <table>  3   <tr>  4     <td width="50%">  5     <asp:ListBox ID="ListBox2" runat="server" Height="128px" Width="148px"> 6       <asp:ListItem Value="张三"></asp:ListItem> 7       <asp:ListItem Value="李四"></asp:ListItem> 8       <asp:ListItem>王五</asp:ListItem> 9       </asp:ListBox>10     </td> 11     <td> 12       <asp:Button ID="Button2" runat="server" Text="《"></asp:Button>13       <asp:Button ID="Button1" runat="server" Text="<"></asp:Button>14       <asp:Button ID="Button3" runat="server" Text=">"></asp:Button>15       <asp:Button ID="Button4" runat="server" Text="》"></asp:Button>16     </td> 17     <td align="left" width="50%"> 18       <asp:ListBox ID="ListBox1" runat="server" Height="128px" Width="148px"></asp:ListBox>19     </td> 20   </tr> 21   </table> 22   </div> 

View Code

 今天用到listbox左右移动在网上找了一个