0
A
回答
2
你只需把它添加到包含右按鈕的div:
text-align:right;
因爲你使用的拉右不需要補償給你的當前設置。
如果您希望它在小屏幕上的行爲類似,請將col-md更改爲col-xs,否則寬度將默認爲100%,作爲塊級元素。
1
這對我來說工作得很好:
<div class="col-md-4 col-md-offset-6 pull-right">
<button type="reset" style="float:right;" class="btn btn-default">
Button 2</button>
<button type="reset" style="float:right;" class="btn btn-default">
Button 3</button>
</div>
這是你更新後的腳本:
相關問題
- 1. Bootstrap centering icon on social media buttons
- 2. Ruby on Rails,Bootstrap&Buttons
- 3. Bootstrap Align元素
- 4. Bootstrap 4:col align right
- 5. actionscript 3演示onclick without buttons
- 6. Bootstrap 2.3 Responsive Navbar align-right
- 7. Bootstrap <input> align div in div
- 8. 在simple_form bootstrap rails-bootstrap-toggle-buttons不起作用
- 9. align twitter bootstrap進度條和徽章
- 10. AddThis buttons
- 11. Dynamcially sizing buttons iphone
- 12. Bootstrap 3 not loading
- 13. Popup with 3 buttons - Onclick事件問題AJAX,ASP.net項目
- 14. Bootstrap 2到Bootstrap 3
- 15. Bootstrap-Switch和Bootstrap 3?
- 16. php post multiple buttons
- 17. 刪除tables.less Bootstrap 3
- 18. setOnClick for 100 buttons
- 19. Flash:Movieclips,Graphics,Buttons
- 20. RelativeLayout with buttons
- 21. Make buttons working
- 22. ShareThis Buttons Alignment
- 23. backstretch next&previous buttons
- 24. CakePHP Radio Buttons
- 25. Android Listview with clickable buttons
- 26. Bootstrap 3 div jumbotron
- 27. Bootstrap 3 navbar layout
- 28. Bootstrap 3 Puzzle Simplified
- 29. Bootstrap 3 modal change
- 30. Bootstrap 3 stickix
u能更新我已經給出了bootply樣本我的問題。此外,按鈕的移動視圖不對齊。 – user2322507
更新了我的答案。我假設你的意思是xs屏幕。在這種情況下,你想使用md的col-xs intead。 –
工作正常...有沒有一種方法可以保持按鈕的寬度不變? – user2322507