改变单选按钮列表repeatdirection=“;“水平”;如果可移动,则为垂直
本文关键字:可移动 垂直 如果 水平 列表 单选按钮 repeatdirection 改变 | 更新日期: 2023-09-27 18:19:59
我有一个包含单选按钮列表的网页。我想将radibuttonlist repeatdirection从水平更改为垂直。我使用的是CSS骨架框架。所以我的页面是有响应的,但是asp:RadioButtonList没有改变。
这是我的代码
<asp:RadioButtonList ID="rbl_payment_type" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="rbl_payment_type_SelectedIndexChanged">
<asp:ListItem Value="0">Serbest Ödeme</asp:ListItem>
<asp:ListItem Value="1">Ön Tanımlı Ödeme</asp:ListItem>
</asp:RadioButtonList>
如何更改响应html的重复方向?
您可能需要查看RadioButtonList的RepeatLayout
属性,该属性确定单选按钮列表是否呈现为表。此外,如果您使用的是.NET 4.0或更高版本,则可以选择有序列表或无序列表。
以下是RadioButtonList RepeatLayout属性的文档
一旦你把它放在非表布局中,那么我相信它将更有利于CSS的响应UI。