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

前端 未结 7 711
我在风中等你
我在风中等你 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:11

    Simply add the bootstrap "row-fluid" class to the textarea. It will stretch to 100% width;

    Update: For bootstrap 3.x use "col-xs-12" class for textarea;

    Update II: Also if you want to extend the container to full width use: container-fluid class.

提交回复
热议问题