When the whole world is about to rain, let's make it clear in our heart together

热爱前端开发,专注于前端

bootstrap-菜单

<!DOCTYPE html>  
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title></title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
<!--  按钮式下拉菜单 -->
<div  class="btn-group">
        <button  type="button"  class="btn  btn-primary  dropwdown-toggle"  data-toggle="dropdown"  aria-haspopup="true"  aria-expanded="false">
             Choose  the  List<span  class="caret"></span>
        </button>
        <ul  class="dropdown-menu">
                    <li><a  href="#">Action</li>
                    <li><a  href="#">Action  action</li>
                    <li><a  href="#">Action  222</li>
                    <li><a  href="#">Action  333</li>
        </ul>

</div>
<!-- 输入框组 -->
<div  class="input-group  input-group-sm">
            <input  type="text"   class="form-control"  placeholder="add  your  email"  aria-describedby="example">
            <span  class="input-group-addon"  id="example">@example.com</span>
</div>
<div class="input-group input-group-lg">
          <span class="input-group-addon" id="sizing-addon1">@</span>
         <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1">
</div>

<div  class="input-group">
           <span  class="input-group-addon">
               <input  type="checkbox"  aria-label="checkbox">
           </span>
           <input  type="text"  class="form-control"   aria-label="text">
</div>
<!-- 额外的按钮 -->
<div  class="input-group">
           <span  class="input-group-btn">
                 <button  class="btn  btn-primary"  type="button">Go</button>
           </span>
           <input  type="text"  class="form-control"   aria-label="text">
</div>
<!-- 额外的下拉菜单 -->
<div   class="input-group">
            <div  class="input-group-btn">
                     <button  type="button"  class="btn  btn-primary  dropwdown-toggle"  data-toggle="dropdown"  aria-haspopup="true"  aria-expanded="false">
                            Choose  the  List<span  class="caret"></span>
                    </button>
                    <ul  class="dropdown-menu">
                        <li><a  href="#">Action</li>
                        <li><a  href="#">Action  action</li>
                        <li><a  href="#">Action  222</li>
                        <li><a  href="#">Action  333</li>
                   </ul>

            </div>
            <input  type="text"  class="form-control"  aria-label="...">
</div>

<div class="row">
             <div class="col-lg-6">
                           <div class="input-group">
                                      <div class="input-group-btn">
                                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <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 role="separator" class="divider"></li>
                                                              <li><a href="#">Separated link</a></li>
                                              </ul>
                                      </div><!-- /btn-group -->
                                      <input type="text" class="form-control" aria-label="...">
                          </div><!-- /input-group -->
             </div><!-- /.col-lg-6 -->

            <div class="col-lg-6">
                         <div class="input-group">
                                     <input type="text" class="form-control" aria-label="...">
                                     <div class="input-group-btn">
                                                 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
                                                 <ul class="dropdown-menu dropdown-menu-right">
                                                                 <li><a href="#">Action</a></li>
                                                                  <li><a href="#">Another action</a></li>
                                                                  <li><a href="#">Something else here</a></li>
                                                                  <li role="separator" class="divider"></li>
                                                                  <li><a href="#">Separated link</a></li>
                                                </ul>
                                     </div><!-- /btn-group -->
                         </div><!-- /input-group -->
             </div><!-- /.col-lg-6 -->
</div><!-- /.row -->
</body>
</html>

 

posted @ 2016-06-05 17:24  婷风  阅读(128)  评论(0编辑  收藏  举报