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

这个问题在这里已经有了答案:

  • 如何禁用textarea的可调整大小的属性? 13个答案

  • textarea {
       resize:none;
    }
    <textarea rows="3"></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>
    

    尝试这个

    <html>
    <head>
    </head>
    <body>
        <textarea style="overflow:auto;resize:none" rows="10" cols="20"></textarea>
    </body>
    </html>
    
    链接地址: http://www.djcxy.com/p/27381.html

    上一篇: How can I make user not allow to resize textarea?

    下一篇: how to forbid resizing of TextArea.For in ASP.NET MVC 2?