2016-08-05 57 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) –