如何让用户不允许调整textarea的大小?

时间:2016-01-10 11:31:59

标签: javascript php jquery html

我的网站上有textarea,我想让用户不允许调整此textarea的大小。 但我只使用这些语言: php - html - jquery - javascript

3 个答案:

答案 0 :(得分:1)

textarea {
   resize:none;
}
<textarea rows="3"></textarea>

试试这个

答案 1 :(得分:1)

试试这个

<textarea rows="4" cols="50" style="resize:none;">
    At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies. 
</textarea>

答案 2 :(得分:1)

试试这个

<html>
<head>
</head>
<body>
    <textarea style="overflow:auto;resize:none" rows="10" cols="20"></textarea>
</body>
</html>
相关问题