开发者

Display submit button text in lowercase letters

When you have a submit button, the text usually defaults to e.g Create Foo o开发者_如何学运维r Udate Foo.

Is it possible to display the same text just in lowercase letters?

E.g, something like this:

<%= f.submit initial_text.downcase %>

Is there some way to achieve this, apart from passing strings to the form?


You could always set a CSS class to the button that does text-transform:lowercase;

f.submit :class => "lowercase-button"


You could apply the "Text-Transform: lowercase" CSS style to the button text.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜