如何禁用HTML< textarea>的大小调整器? [英] How to disable the resize grabber of an HTML <textarea>?

查看:97
本文介绍了如何禁用HTML< textarea>的大小调整器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用textarea中的抓取器?



我的意思是出现在textarea右下角的三角形物体。

解决方案

只需使用调整大小:无

  textarea {
resize:none;
}

您也可以决定调整您的textareas的水平或垂直大小,如下所示:



textarea {resize:vertical; }



textarea {resize:horizo​​ntal; }



最后,
调整大小:都可以调整大小。

How to disable the grabber in the textarea?

I mean that triangle thing which appears in the right-bottom corner of the textarea.

解决方案

Just use resize: none

textarea {
   resize: none;
}

You can also decide to resize your textareas only horizontal or vertical, this way:

textarea { resize: vertical; }

textarea { resize: horizontal; }

Finally, resize: both enables the resize grabber.

这篇关于如何禁用HTML< textarea>的大小调整器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆