怎么让文本框中的文字垂直方向居中

来源:互联网 发布:linux编译c程序错误 编辑:程序博客网 时间:2024/04/25 21:10

来自:http://topic.csdn.net/t/20050722/20/4162420.html

 

解决方法:

<textarea   style= "height:50px;   line-height:50px; "> test </textarea>

 

指定height和line-height即可。

原创粉丝点击