textarea的行和css中的cols属性 [英] textarea's rows, and cols attribute in css
本文介绍了textarea的行和css中的cols属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过css设置textarea的行和列属性。我如何在CSS中这样做?
I am trying to set the textarea's rows and columns attributes via css. How would I do this in CSS?
推荐答案
width
<!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屋!
查看全文