简体   繁体   中英

How to increase row height of a textarea

Is there a way to change the height of the rows in a textarea? My textarea has a height of 138px and it has 8 rows. In Chrome everything looks fine. But in Mozilla it doesn't look very good.

Just to be clear, I'm not talking about the height of the textarea. I'm talking about the height of the rows in that textarea.

If you want to increase the height of individual rows of the textarea, then use the line-height CSS property:

textarea { line-height: 200%; }

( fiddle )

You can use these plugins.These are a nice plugins

TextAreaExpander demonstration and jQuery Elastic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM