【发布时间】:2017-02-14 21:29:29
【问题描述】:
我正在尝试将 .NET WebForms 页面稍微升级到 Bootstrap 3。我需要维护一个在没有 Bootstrap 的情况下也能正常工作的功能。我需要一个单选按钮标签右侧的小文本框。喜欢,在选择“其他”时,您需要免费表单文本其他方式。
在上面的示例中,我只需要将文本框向上移动,而不是像整个表单一样宽。
这是我当前的代码:
<div class="form-group">
<asp:Label ID="Ethnicity_Label" runat="server" Text="Ethnicity" CssClass="col-xs-12 col-sm-3 control-label"></asp:Label>
<div class="col-xs-12 col-xs-push-1 col-sm-9 col-sm-push-0 radio radiobuttonlist">
<asp:RadioButtonList ID="Ethnicity" runat="server" ValidationGroup="applicationForm" RepeatLayout="Flow">
<asp:ListItem Text="Multi-Racial" Value="Multi-Racial" />
<asp:ListItem Text="Other Ethnicity" Value="Other Ethnicity" />
</asp:RadioButtonList><span class="col-xs-4 col-xs-push-3"><asp:TextBox ID="OtherEthnicity" runat="server" MaxLength="250" ValidationGroup="applicationForm" CssClass="form-control" /></span>
</div>
</div>
【问题讨论】:
标签: asp.net .net twitter-bootstrap twitter-bootstrap-3 webforms