答案 0 :(得分:2)
您只需将其添加到包含右侧按钮的div中:
text-align:right;
您在当前设置中不需要偏移,因为您正在使用右拉。
如果您希望它在小屏幕上的行为相似,请将col-md更改为col-xs,否则宽度默认为100%是块级元素。
答案 1 :(得分: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>
这是您更新的脚本: