1

我是新手,我正在开发一个带有 rails 和 bootstrap 的应用程序。我正在使用它在表单上生成一个字段:

<%= d.text_field :email, :placeholder => "email" %>
<%= text_field_tag 'doctor[name][]', nil, :placeholder => "name" %>

它工作得很好,但我想调整它的高度。我用谷歌搜索并没有找到任何适合的好答案。

有人遇到过这个问题吗?

4

1 回答 1

1

If you're using bootstrap v2, you should add this:

<%= d.text_field :email, :placeholder => "email", :class => "span5" %>

Note that the number in span class is referred to the size that you want to put.

If you're using this new bootstrap (v3 rc), you should check this page

于 2013-08-10T16:25:43.917 回答