Bootstrap内联表单按钮

时间:2016-04-10 15:28:37

标签: ruby-on-rails twitter-bootstrap

Image showing the problem

如图所示,我的按钮不是彼此串联的,取消按钮远远大于应有的位置。

这是我目前正在使用的代码:

<div class="form-group row">
  <div class="col-sm-offset-2 col-sm-10">
    <%= button_tag t('btn.save'), class: 'btn btn-brand-color', type: 'submit' %>
    <%= link_to t('btn.cancel'), :back, class: 'btn btn-default' %>
  </div>
</div>

我想要的是让两个按钮彼此相邻,最好是使用已经存在的引导类。

0 个答案:

没有答案