html textarea 禁止拉伸

给textarea 设置css . 

resize: both;   //纵横拉伸

resize: horizontal; //水平拉伸

resize: vertical; // 垂直拉伸

resize: none; // 禁止拉伸

CSS:

textarea {
  resize: none; /* Disables resizability */
}

HTML:

<textarea>Type some text here.</textarea>

参考连接:

https://developer.mozilla.org/en-US/docs/Web/CSS/resize

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

aikongmeng CSDN认证博客专家 RxJava 性能优化 Android Jetpack
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( T | o ) ( Y | o | u | t | h | , | T | o ) ( S | i | m | p | l | e | ! )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 猿与汪的秘密 设计师:上身试试 返回首页