How can I get my Twitter Bootstrap buttons to right align?
问题 I have a simple demo here: http://jsfiddle.net/HdeZ3/1/ <ul> <li>One <input class="btn pull-right" value="test"></li> <li>Two <input class="btn pull-right" value="test2"></li> </ul> I have an unordered list and for each list item I wish to have text on the left and then a right aligned button. I have tried to use pull-right but this completely messes up the alignment. What am I doing wrong? 回答1: Insert pull-right into the class attribute and let bootstrap arrange the buttons. For Bootstrap 2