How to disable the resize grabber of an HTML <textarea>?
This question already has an answer here:
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.
<textarea style="resize:none" name="name" cols="num" rows="num"></textarea>
只是例子
用于禁用调整大小选项的textarea示例
<textarea CLASS="foo"></textarea>
<style>
textarea.foo
{
resize:none;
}
</style>
链接地址: http://www.djcxy.com/p/4708.html
上一篇: 如何禁用textarea调整大小?