如何在Twitter Bootstrap的输入组中缩短文本输入?

时间:2015-11-21 05:51:21

标签: html css asp.net twitter-bootstrap

如何缩短输入组中的文本输入?缩短它会是一个好主意吗?

<div class="input-group">
    <asp:TextBox ID="Textbox1" CssClass="form-control" placeholder="Search..." runat="server" Text="" />
    <span class="input-group-btn">
        <asp:Button ID="Button1" CssClass="btn btn-primary" runat="server" Text="Search" />
    </span>
</div>

1 个答案:

答案 0 :(得分:0)

http://getbootstrap.com/components/#input-groups-buttons

<div class="row">
  <div class="col-lg-6">
    <div class="input-group">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
      <input type="text" class="form-control" placeholder="Search for...">
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
  <div class="col-lg-6">
    <div class="input-group">
      <input type="text" class="form-control" placeholder="Search for...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
</div><!-- /.row -->