开发者

Increasing font size in rails collection_select

How do I increase the font size in collection_select dropdown box for a rails app开发者_JS百科?

I imagine this could be up with CSS.


The collection_select method allows you to specify an html options, such as an html class name, e.g.:

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

Then, you can style it with CSS:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜