Is there a way to get a textarea to stretch to fit its content without using PHP or JavaScript?

后端 未结 5 1173
再見小時候
再見小時候 2020-12-08 03:25

I am filling a textarea with content for the user to edit.

Is it possible to make it stretch to fit content with CSS (like overflow:show for a div)?

5条回答
  •  独厮守ぢ
    2020-12-08 04:22

    Not really. This is normally done using javascript.

    there is a good discussion of ways of doing this here...

    Autosizing textarea using Prototype

提交回复
热议问题