本文共 685 字,大约阅读时间需要 2 分钟。
本文翻译自:
This question already has an answer here: 这个问题在这里已有答案:
How to disable the grabber in the <textarea>
? 如何在<textarea>
禁用抓取器?
I mean that triangle thing which appears in the right-bottom corner of the <textarea>
. 我指的是出现在<textarea>
右下角的三角形物。
参考:
example of textarea for disable the resize option textarea的示例,用于禁用resize选项
Just use resize: none
只需使用resize: none
textarea { resize: none;}
You can also decide to resize your textareas only horizontal or vertical, this way: 您还可以决定仅以水平或垂直方式调整textareas的大小:
textarea { resize: vertical; }
textarea { resize: horizontal; }
Finally, resize: both
enables the resize grabber. 最后, resize: both
启用调整大小抓取器。
只是一个例子
转载地址:http://jzjnb.baihongyu.com/