如何限制Chrome中最大文本宽度和高度,或如何禁用textarea调整大小 [英] How to restrict max textarea width and height in chrome or how to disable textarea resizing

查看:130
本文介绍了如何限制Chrome中最大文本宽度和高度,或如何禁用textarea调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome允许通过右下角的药物来调整文本区域的大小,但有时候这种移动可能会破坏网页的设计,所以我想知道如何限制该操作的最大和最小宽度如何禁用

Chrome allowed to resize text area by drugging that on the bottom right corner, but some times this movement may break design of the page, so i am wondering how to restrict the max and min width for that action of how to disable that function at all with thml/javascript/css on the page?

推荐答案

您可以禁用使用以下CSS重新调整大小:

You can disable re-sizing it with the following css:

resize: none;

这篇关于如何限制Chrome中最大文本宽度和高度,或如何禁用textarea调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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