Ruby on Rails简单表单水平对齐复选框

时间:2018-07-30 03:20:44

标签: html css ruby-on-rails simple-form

如何水平对齐由simpleform生成的复选框?

我尝试了以下操作,但无效

<%= f.input  :operating_days, :collection=>Date::DAYNAMES, as: :check_boxes, :input_html=>{:checked=>@business.opes},:label=>'OPD',:item_wrapper_class => 'inline'%>


<%= f.input  :operating_days, :collection=>Date::DAYNAMES, as: :check_boxes, :input_html=>{:checked=>@business.opes},:label=>'OPD',:style => 'display: inline-block;'%>

<%= f.input  :operating_days, :collection=>Date::DAYNAMES, as: :check_boxes, :input_html=>{:checked=>@business.opes,:style => 'display: inline-block;'},:label=>'OPD'%>

我正在使用Bootstrap。

0 个答案:

没有答案