0
我想添加輸入框旁邊的按鈕。爲什麼輸入和按鈕不是並排?
<div class="form-group row">
<label for="imageidVal" class="col-md-1 control-label pull-left text-nowrap">Image Id:</label>
<div class="col-md-3 ">
<input type="text" class="form-control" id="imageidVal" name="imageidVal" readonly="readonly" placeholder="Image Id" value='<jsp:getProperty property="imageID" name="adminObj"/>'>
</div>
<label for="cntridVal" class="col-md-1 control-label pull-left text-nowrap">Center Id:</label>
<div class="col-md-3 ">
<input type="text" class="form-control" id="cntridVal" name="cntridVal" placeholder="Center Id" value='<jsp:getProperty property="cntr_id" name="adminObj"/>'>
<button type="submit" class="btn btn-primary form-control" data-toggle="modal" data-target="#myModal" id = "searchCntrBtn" name="searchCntrBtn" onclick="getCntrDetails()">...</button>
</div>
</div>
我會修復你的格式 - 這個剪切和粘貼的代碼片段很難閱讀。我試着將'form-group'移動到一個父div,並且只讓它自己有'row'類,並且看看它有多遠,就像他們在文檔中獲得的那樣:http://getbootstrap.com/css /#forms-control-sizes在列大小下。 – kuanb
沒有..拆除後也無法正常工作。給出相同的顯示 –
Ravikanth