textarea的行和CSS中的cols属性 [英] textarea's rows, and cols attribute in CSS
本文介绍了textarea的行和CSS中的cols属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过CSS设置textarea
的rows
和cols
属性.
I'd like to set the textarea
's rows
and cols
attributes via CSS.
我该如何在CSS中做到这一点?
How would I do this in CSS?
推荐答案
width
和height
用于css路由.
<!DOCTYPE html>
<html>
<head>
<title>Setting Width and Height on Textareas</title>
<style>
.comments { width: 300px; height: 75px }
</style>
</head>
<body>
<textarea class="comments"></textarea>
</body>
</html>
这篇关于textarea的行和CSS中的cols属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文