1、文字和输入框前后排列:
代码:
<div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> <h2>条件查找</h2> </div> <div class="panel-body"> <div class="row"> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">归属地</div> <div class="col-md-4"> <asp:DropDownList ID="ddlsheng" DataTextField="name" DataValueField="id" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlsheng_SelectedIndexChanged" CssClass="form-control"> <asp:ListItem Value="0">全国</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:DropDownList ID="ddlshi" DataTextField="name" DataValueField="id" runat="server" AutoPostBack="True" CssClass="form-control"> </asp:DropDownList> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="ddlsheng" EventName="SelectedIndexChanged" /> </Triggers> </asp:UpdatePanel> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">余额</div> <div class="col-md-4"> <input type="text" class="form-control" runat="server" id="Balance_start" name="Balance_start" /> </div> <div class="col-md-4"> <input type="text" class="form-control" runat="server" id="Balance_end" name="Balance_end" /> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">是否VIP</div> <div class="col-md-4"> <asp:DropDownList ID="select_IsVIP" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="-1">全部</asp:ListItem> <asp:ListItem Value="0">是</asp:ListItem> <asp:ListItem Value="1">否</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">日期</div> <div class="col-md-4"> <input type="text" id="txtfrom" runat="server" class="form-control" placeholder="选择开始日期" onfocus="WdatePicker({dateFmt:'yyyy/MM/dd'})"> </div> <div class="col-md-4"> <input type="text" id="txtto" runat="server" class="form-control" placeholder="选择结束日期" onfocus="WdatePicker({dateFmt:'yyyy/MM/dd'})"><%--,minDate:'%y-%M-%d %H:%m:%s'--%> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">代驾次数</div> <div class="col-md-4"> <input type="text" class="form-control" runat="server" id="daijicount_start" name="daijicount_start" /> </div> <div class="col-md-4"> <input type="text" class="form-control" runat="server" id="daijicount_end" name="daijicount_end" /> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">生日月份</div> <div class="col-md-4"> <asp:DropDownList ID="BirthdayMonth" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="0">全部</asp:ListItem> <asp:ListItem Value="1">1月</asp:ListItem> <asp:ListItem Value="2">2月</asp:ListItem> <asp:ListItem Value="3">3月</asp:ListItem> <asp:ListItem Value="4">4月</asp:ListItem> <asp:ListItem Value="5">5月</asp:ListItem> <asp:ListItem Value="6">6月</asp:ListItem> <asp:ListItem Value="7">7月</asp:ListItem> <asp:ListItem Value="8">8月</asp:ListItem> <asp:ListItem Value="9">9月</asp:ListItem> <asp:ListItem Value="10">10月</asp:ListItem> <asp:ListItem Value="11">11月</asp:ListItem> <asp:ListItem Value="12">12月</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">跟踪状态</div> <div class="col-md-4"> <asp:DropDownList ID="TrackingState" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="-1">全部</asp:ListItem> <asp:ListItem Value="0">有意向</asp:ListItem> <asp:ListItem Value="1">无意向</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">再联系时间</div> <div class=" col-md-8 "> <input type="text" id="NextContactDate" runat="server" class="form-control" placeholder="选择日期" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">集团用户</div> <div class="col-md-4"> <asp:DropDownList ID="GroupUser" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="-1">全部</asp:ListItem> <asp:ListItem Value="0">个人用户</asp:ListItem> <asp:ListItem Value="1">集团用户</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> </div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label" for="select">客户类型</div> <div class="col-md-4"> <asp:DropDownList ID="CustomersType" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="0">全部</asp:ListItem> <asp:ListItem Value="1">预付用户</asp:ListItem> <asp:ListItem Value="2">推荐用户</asp:ListItem> <asp:ListItem Value="3">普通用户</asp:ListItem> <asp:ListItem Value="4">定额合约后付费商户</asp:ListItem> <asp:ListItem Value="5">非定额后付费合约商户</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-4"> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-3 control-label" for="select" >开票</div> <div class="col-md-3" > <asp:DropDownList ID="ddl_Invoice" runat="server" AutoPostBack="True" CssClass="form-control"> <asp:ListItem Value="-1">全部</asp:ListItem> <asp:ListItem Value="1">已开发票</asp:ListItem> <asp:ListItem Value="0">未开发票</asp:ListItem> </asp:DropDownList> </div> <div class="col-md-3 control-label" for="select">标记</div> <div class="col-md-3"> <asp:DropDownList ID="ddlRemark" runat="server" CssClass="form-control" > <asp:ListItem Value="0">全部</asp:ListItem> <asp:ListItem Value="1">空号</asp:ListItem> <asp:ListItem Value="2">通话中</asp:ListItem> <asp:ListItem Value="3">拒接</asp:ListItem> <asp:ListItem Value="4">无人接听</asp:ListItem> <asp:ListItem Value="5">停机</asp:ListItem> <asp:ListItem Value="6">非本人</asp:ListItem> <asp:ListItem Value="7">不需要</asp:ListItem> <asp:ListItem Value="8">酒店</asp:ListItem> <asp:ListItem Value="9">E代驾</asp:ListItem> <asp:ListItem Value="10">重复数据</asp:ListItem> <asp:ListItem Value="11">其他</asp:ListItem> </asp:DropDownList> </div> </div> </div> </div> <div class="col-lg-4 col-sm-8 col-xs-8 col-xxs-12"> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-4 control-label">关键字</div> <div class="col-md-4"> <input type="text" class="form-control" runat="server" id="keyword" name="keyword" /> </div> <div class="col-md-4"> <asp:Button ID="btnSearch" runat="server" Text=" 筛 选 " CssClass="btn btn-success col-md-12 " OnClick="btnSearch_Click"/> </div> </div> </div> </div> </div> <!--查询 按钮--> </div> </div> </div> <!--/col--> </div> <!--/条件查找-->
2、文字和输入框上下排列:
代码:
<div class="row"> <div class="form-group col-sm-4"> <div>司机姓名</div> <asp:TextBox ID="txt_DriverName" runat="server" class="form-control "></asp:TextBox> </div> <div class="form-group col-sm-4"> <div>司机工号</div> <asp:TextBox ID="txt_Ucode" runat="server" class="form-control "></asp:TextBox> </div> <div class="form-group col-sm-2"> <div>归属地</div> <asp:DropDownList ID="ddlshengAdd" runat="server" CssClass="form-control " OnSelectedIndexChanged="ddlshengAdd_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Value="0">全省</asp:ListItem> </asp:DropDownList> </div> <div class="form-group col-sm-2"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <label></label> <asp:DropDownList ID="ddlshiAdd" DataTextField="name" DataValueField="id" runat="server" CssClass="form-control "></asp:DropDownList> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="ddlshengAdd" EventName="SelectedIndexChanged" /> </Triggers> </asp:UpdatePanel> </div> </div>
以上内容是小编给大家介绍的Bootstrap3.0建站教程(一)之bootstrap表单元素排版的相关知识,希望对大家有所帮助!
标签:
bootstrap表单排版
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
暂无“Bootstrap3.0建站教程(一)之bootstrap表单元素排版”评论...
更新动态
2024年11月13日
2024年11月13日
- 群星《华语贺年金曲》K2HD[WAV+CUE][697M]
- 群星《酒廊夜色美》2CD[DTS-WAV]
- 群星《2024好听新歌35》AI调整音效【WAV分轨】
- 神秘园《讲故事的人》2019[FLAC+CUE/整轨]
- 张智霖VS许秋怡.1991-现代爱情故事【永高创意】【WAV+CUE】
- 忧欢派对.1988-忧欢派对【飞碟】【WAV+CUE】
- 群星.2009-他的沧海遗珠精选(金碟铁盒珍藏系列)【SONY】【WAV+CUE】
- 刘德华《经典金曲》[WAV+CUE][833M]
- 邓丽君《千言万语》SACD德国限量版[低速原抓WAV+CUE][1G]
- 王闻VS曼里《不老情歌》经典粤语情歌[低速原抓WAV分轨][1G]
- 英雄联盟faker有多少联赛冠军 faker联赛冠军数量介绍
- 炉石传说酒馆战棋分数等级段位介绍 酒馆战棋分数最新等级划分一览
- 野狗子奇才三姐怎么收集 野狗子奇才三姐收集攻略
- 香港群星《电影歌曲101》6CD[WAV整轨]
- 发烧民乐-心灵乐赏系列4CD[WAV+CUE整轨]