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

Javascript 如何使用户不允许调整textarea的大小?,javascript,php,jquery,html,Javascript,Php,Jquery,Html,我的网站中有textarea,我想让用户不允许调整此textarea的大小。 但我只使用这种语言: php-html-jquery-javascript textarea{ 调整大小:无; } 试试这个 <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 w

我的网站中有textarea,我想让用户不允许调整此textarea的大小。 但我只使用这种语言: php-html-jquery-javascript
textarea{
调整大小:无;
}
试试这个

<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>

在w3schools.com,您将学习如何创建网站。我们提供所有web开发技术的免费教程。
试试这个

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