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

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

    UPDATE: As of Bootstrap 3.0, the input-* classes described below for setting the width of input elements were removed. Instead use the col-* classes to set the width of input elements. Examples are provided in the documentation.


    In Bootstrap 2.3, you'd use the input classes for setting the width.

    
    
    
    
    
    

    Do a find for "Control sizing" for examples in the documentation.

    But for height I think you'd still use the rows attribute.

提交回复
热议问题