More than 1 row in <Input type=“textarea” />

后端 未结 4 1463
-上瘾入骨i
-上瘾入骨i 2020-12-25 09:23

I\'m having troubles getting my to have more than 1 row,

I tried adding the properties in the html, like you would do

4条回答
  •  抹茶落季
    2020-12-25 10:14

    The "input" tag doesn't support rows and cols attributes. This is why the best alternative is to use a textarea with rows and cols attributes. You can still add a "name" attribute and also there is a useful "wrap" attribute which can serve pretty well in various situations.

提交回复
热议问题