【问题标题】:How can I make user not allow to resize textarea? [duplicate]如何让用户不允许调整 textarea 的大小? [复制]
【发布时间】:2016-04-14 18:40:40
【问题描述】:

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

【问题讨论】:

    标签: javascript php jquery html


    【解决方案1】:

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

    试试这个

    【讨论】:

      【解决方案2】:

      试试这个

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

      【讨论】:

        【解决方案3】:

        试试这个

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

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2011-02-28
          • 1970-01-01
          • 2014-03-21
          • 1970-01-01
          • 2014-06-09
          • 2011-07-13
          • 1970-01-01
          相关资源
          最近更新 更多