How can I change cols of textarea in twitter-bootstrap?

前端 未结 7 784
我在风中等你
我在风中等你 2021-02-01 00:23

If I change the value of :rows, it works. But it stays at the default cols whatever value I set with \':cols =>\'. Column width won\'t change.

I viewed the html source a

7条回答
  •  感情败类
    2021-02-01 00:47

    This works for me with twitter bootstrap 2 and simple_form 2.0.4
    Result is a span6 text area in a span9 row

     
    <%= f.input :some_text, :input_html => {:rows => 5, :placeholder => "Enter some text.", :class => "span6"}%>

提交回复
热议问题