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

前端 未结 7 722
我在风中等你
我在风中等你 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 01:08

    I found the following in the site.css generated by VS2013

    /* Set width on the form input elements since they're 100% wide by default */
    input,
    select,
    textarea {
        max-width: 280px;
    }
    

    To override this behavior in a specific element, add the following...

     style="max-width: none;" 
    

    For example: