默认情况下,RadioButtonList、CheckBoxList 的各项是一行一个,竖着显示的,如何让其横着显示呢,设置 RepeatDirection 为 RepeatDirection.Horizontal就可以达到想要的结果。

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <fieldset>
    <legend>系统管理</legend>
        <asp:CheckBoxList ID="cblSystem" runat="server" AutoPostBack="false" 
            RepeatColumns="4" RepeatDirection="Horizontal">
        </asp:CheckBoxList>
    </fieldset>
    <div>
</body>
</html>

显示的样式如下:如何让CheckBoxList横着显示

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2021-06-19
  • 2022-01-09
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案