2016-08-05 32 views
0

这就是我现在所拥有的,我尝试多种方法,包括从但他们都没有为我工作。对齐2输入字段与下拉引导

我有什么: enter image description here

我想要什么: enter image description here

我的代码:

<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> 
 
<fieldset class="inline-fields"> 
 
    <div class = "row col-sm-12"> 
 
     <div class = "row col-sm-6 col-md-6"> 
 
     \t <div class="dropdown"> 
 
\t \t \t \t <button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Designer 
 
\t \t \t \t <span class="glyphicon glyphicon-triangle-bottom"></span></button> 
 
\t \t \t \t <ul class="dropdown-menu scrollable-menu" role="menu"> 
 
\t \t \t \t \t <li><a href="#">Action</a></li> 
 
\t \t \t \t \t <li><a href="#">Another action</a></li> 
 
\t \t \t \t \t <li><a href="#">Something else here</a></li> 
 
\t \t \t \t \t <li><a href="#">Action</a></li> 
 
\t \t \t \t \t <li><a href="#">Action</a></li> 
 
\t \t \t \t \t <li><a href="#">Another action</a></li> 
 
     \t \t </ul> 
 
\t \t \t </div> 
 
     </div> 
 
     <div class = "row col-sm-6 col-md-6"> 
 
\t \t \t <input type="text" class="form-control form_after input-lg" id="form1" placeholder="email"/> 
 
\t \t \t <input type="text" class="form-control form_after input-lg" id="form2" placeholder="referal"/> 
 
      <br/> 
 
     </div> 
 
    </div> 
 
</fieldset>

谢谢。

+0

请与我们分享您迄今为止尝试过的代码? –

+0

https://jsfiddle.net/4qry43nh/ –

+0

https://jsfiddle.net/4qry43nh/1/ –

回答

1

添加display: inline-block;<div class="dropdown">和2 input元素

+0

其更好,但在这里,我现在有什么.. [链接(imgur专辑)](http://imgur.com/a/EPJU9) –