【问题标题】:change radiobuttonlist repeatdirection="horizontal" to vertical if mobile如果移动,将 radiobuttonlist repeatdirection="horizo​​ntal" 更改为垂直
【发布时间】:2013-06-24 07:07:59
【问题描述】:

我有一个包含单选按钮列表的网页。我想将单选按钮列表重复方向从水平更改为垂直。我正在使用 CSS Skeleton 框架。所以我的页面是响应式的,但 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 的重复方向?

【问题讨论】:

    标签: c# asp.net css radio-button responsive-design


    【解决方案1】:

    您可能想查看 RadioButtonList 的 RepeatLayout 属性,该属性确定单选按钮列表是否呈现为表格。此外,如果您使用的是 .NET 4.0 或更高版本,则可以选择有序列表或无序列表。

    这是RadioButtonList RepeatLayout property的文档

    一旦你在非表格布局中使用它,我相信它会更有利于 CSS 的响应式 UI。

    【讨论】:

      猜你喜欢
      • 2019-06-29
      • 2016-09-11
      • 1970-01-01
      • 2016-12-01
      • 1970-01-01
      • 2021-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多