How do I disable the resizable property of a textarea?

后端 未结 18 1157
北荒
北荒 2020-11-22 09:56

I want to disable the resizable property of a textarea.

Currently, I can resize a textarea by clicking on the bottom right corner of the

18条回答
  •  渐次进展
    2020-11-22 10:52

    I found two things:

    First

    textarea{resize: none}
    

    This is a CSS 3, which is not released yet, compatible with Firefox 4 (and later), Chrome, and Safari.

    Another format feature is to overflow: auto to get rid of the right scrollbar, taking into account the dir attribute.

    Code and different browsers

    Basic HTML

    
    
    
    
    
        
    
    
    

    Some browsers

    • Internet Explorer 8

    Enter image description here

    • Firefox 17.0.1

    Enter image description here

    • Chrome

    Enter image description here

提交回复
热议问题