4
A
回答
11
你能做到這樣,與輸入組和兩個輸入字段,並添加一些CSS:
HTML:
<div class="input-group double-input">
<input type="text" placeholder="First" class="form-control" />
<input type="text" placeholder="Second" class="form-control" />
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
CSS:
.double-input .form-control {
width: 50%;
border-right-width: 0px;
}
.double-input .form-control:focus {
border-right-width: 1px;
}
1
.input-group-addon{
padding: 0;
width: 0px;
border:none;
background-color: #ccc;
}
.input-group{
width: 100%;
}
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<div class="form-group">
<div class="input-group">
<input data-provide="datepicker" class="form-control">
<div class="input-group-addon"></div>
<input data-provide="datepicker" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
相關問題
- 1. Bootstrap 3輸入附加升級
- 2. Parsleyjs 2和Bootstrap 3輸入文本字段與附加掩蓋了錯誤
- 3. Twitter Bootstrap 3:通過驗證輸入附加問題
- 4. 合併輸入附加輸入附加附加項和spanX類
- 5. Bootstrap文本輸入錯誤高度
- 6. Angular + Bootstrap輸入驗證錯誤類
- 7. 錯誤:加入3個表
- 8. Bootstrap 3表分頁錯誤
- 9. Bootstrap表單添加輸入附加時水平對齊問題
- 10. Python 3 - 附件錯誤
- 11. Bootstrap。預先和附加輸入。如何最大化輸入字段寬度?
- 12. 輸入附加類導致顯示錯誤
- 13. Twitter Bootstrap附加跨度輸入大於請求的列寬度
- 14. 獨立輸入字段的Bootstrap Colorpicker附加組件
- 15. 使用輸入Python 3的EOF錯誤
- 16. Bootstrap 3多輸入組寬度
- 17. 在Bootstrap 3 typeahead中禁用輸入
- 18. 附近有語法錯誤「加入」
- 19. 附近有語法錯誤「加入」
- 20. Laravel附加()錯誤
- 21. Jquery附加輸入值undefined
- 22. 將文本輸入添加到BootStrap 3選項卡
- 23. cakephp 3在db中輸入'timestamp'的輸入[內部錯誤]
- 24. 錯誤 - 最多輸入1個參數的輸入,得到3
- 25. 加入3表給出錯誤
- 26. 將Bootstrap 3 Typeahead與Bootstrap標記輸入集成
- 27. Twitter Bootstrap 3導航欄崩潰錯誤
- 28. Bootstrap 3 - jQuery未定義錯誤?
- 29. 加入查詢問題 - 加入附近的語法錯誤
- 30. DateTimePicker Bootstrap錯誤添加日
尼斯,直線和正解! – dariush