How can I prevent the textarea from stretching beyond his parent DIV element? (google-chrome issue only)

前端 未结 4 1960
南方客
南方客 2020-12-12 16:37

How can I prevent the textarea from stretching beyond its parent DIV element?

I have this textarea inside a table which is inside a DIV and it seems that it causes t

4条回答
  •  -上瘾入骨i
    2020-12-12 17:40

    textarea {
    width: 700px;  
    height: 100px;
    resize: none; }
    

    assign your required width and height for the textarea and then use. resize: none ; css property which will disable the textarea's stretchable property.

提交回复
热议问题