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

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

    I don't know if this is the correct way however I did this:

    and put this in my bootstrapcustom.css file:

    @media (min-width: 768px) {
        .textareawidth {
            width:500px;
        }
    }
    @media (max-width: 767px) {
        .textareawidth {
    
        }
    }
    

    This way it resizes based on the viewport. Seems to line everything up nicely on a big browser and on a small mobile device.

提交回复
热议问题