62,075
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div style="overflow-y: scroll; width: 150px; height: 140px">
<asp:CheckBoxList ID="cblGenre" runat="server" CellPadding="5" CellSpacing="10" RepeatColumns="6"
RepeatDirection="Horizontal" TextAlign="Right" RepeatLayout="Table" BorderStyle="Inset"
AppendDataBoundItems="true">
<asp:ListItem>ItemA1</asp:ListItem>
<asp:ListItem>ItemA2</asp:ListItem>
<asp:ListItem>ItemA3</asp:ListItem>
<asp:ListItem>ItemA4</asp:ListItem>
<asp:ListItem>ItemA5</asp:ListItem>
<asp:ListItem>ItemA6</asp:ListItem>
<asp:ListItem>ItemB1</asp:ListItem>
<asp:ListItem>ItemB2</asp:ListItem>
<asp:ListItem>ItemB3</asp:ListItem>
<asp:ListItem>ItemB4</asp:ListItem>
<asp:ListItem>ItemB5</asp:ListItem>
<asp:ListItem>ItemB6</asp:ListItem>
<asp:ListItem>Item1</asp:ListItem>
<asp:ListItem>Item2</asp:ListItem>
<asp:ListItem>Item3</asp:ListItem>
<asp:ListItem>Item4</asp:ListItem>
<asp:ListItem>Item5</asp:ListItem>
<asp:ListItem>Item6</asp:ListItem>
<asp:ListItem>Item41</asp:ListItem>
<asp:ListItem>Item42</asp:ListItem>
<asp:ListItem>Item43</asp:ListItem>
<asp:ListItem>Item44</asp:ListItem>
<asp:ListItem>Item45</asp:ListItem>
<asp:ListItem>Item46</asp:ListItem>
</asp:CheckBoxList>
</div>
</form>
</body>
</html>
style="overflow: scroll; left: 20px; width: 120px; position: absolute; top: 20px; height: 40px;"