如何在CSS中设置textarea行的高度? [英] How does one set the height of a textarea row in CSS?
本文介绍了如何在CSS中设置textarea行的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想改变textarea中单行的高度。所以我正在寻找像 row-height:20px;
如果存在,那将是巨大的。因为我猜,它不,我该怎么办?提前致谢。
I want to alter the height of a single row in a textarea. So I'm looking for something like row-height:20px;
If that exists that would be great. As I'm guessing that it does not, what do I do? Thanks in advance.
我想要一个textarea,它是一行,但高度为20像素。我不能使用css height函数来设置这个。
I want a textarea that is a single row but that has a height of 20 px. I cannot use the css height function to set this.
推荐答案
您想要 line-height
:
textarea { line-height: 2em; }
这篇关于如何在CSS中设置textarea行的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文