2011-04-23 98 views

回答

2

collection_select方法允許你specify an html options, such as an html class name,例如:

collection_select(:user, :title, UserTitle.all, :id, :name, {:prompt=>true}, {:class=>'my-custom-class'}) 

然後,你可以用CSS樣式吧:

.my-custom-class { font-size: 110%; }