开发者

Any way to disable Firefox 4 textarea-resizing handles?

开发者 https://www.devze.com 2023-03-03 04:19 出处:网络
I have a site with a textarea that is a very specific size; resizing it could make the user think that they can enter more text into the textarea than is possible (it is limited by rows and col开发者_

I have a site with a textarea that is a very specific size; resizing it could make the user think that they can enter more text into the textarea than is possible (it is limited by rows and col开发者_如何转开发umns). Firefox 4 automatically shows a 'resize handle' in the bottom-right of the textbox and as a user I can resize the textarea on the page. Is there any way to disable this?

Thanks.


Use CSS and style it with:

textarea {
    resize: none;
}


Sometimes the CSS will not work. I have successfully removed the users ability to resize the textbox by using an inline style. Those are the last ones processed by the browser and have the final say on what style is used.

0

精彩评论

暂无评论...
验证码 换一张
取 消