0
在我的simple_form中,我有一個字段,其中包含作爲一系列複選框的集合。它很長,佔用了很多空間。Rails 5 - 使用item_wrapper_tag在simple_form中設置集合
我想使用CSS設置複選框的樣式,以便將其限制在180像素高度幷包含在可滾動框中。我在simple_form代碼:
<th>Authors</th>
<td><%= f.association :authors, as: :check_boxes, item_wrapper_tag: :div, item_label_class: 'h_180', label: false, collection: Author.order('name ASC') %></td>
我包裹在一個div軌輸出與item_wrapper_tag: :div
。我如何設計這個div? item_label_class
和item_wrapper_class
都不起作用。有