Bootstrap样式问题

时间:2013-07-01 19:55:35

标签: twitter-bootstrap

有没有人知道如何执行以下操作,但将搜索按钮作为下拉菜单?

<div class="input-append">
  <input class="span2" id="appendedInputButtons" type="text">
  <button class="btn" type="button">Search</button>
  <button class="btn" type="button">Options</button>
</div>

1 个答案:

答案 0 :(得分:0)

试一试这对你有用......

<div class="input-append">
                  <input type="text">
                  <div class="btn-group">
                    <button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1">
                      Search
                      <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                      <li><a href="#">Action</a></li>
                      <li><a href="#">Another action</a></li>
                      <li><a href="#">Something else here</a></li>
                      <li class="divider"></li>
                      <li><a href="#">Separated link</a></li>
                    </ul>
                   <button class="btn" tabindex="-1">Options</button>
                  </div>
                </div>