Last active
March 1, 2016 04:52
-
-
Save Barneybook/5626551 to your computer and use it in GitHub Desktop.
鎖定 textarea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 锁住这个textarea,如何锁住哪? | |
| 很简单,只需要一个css属性:resize:none; | |
| ——————– | |
| 查了一下文档,resize可以设置如下的属性: | |
| none:UserAgent没提供尺寸调整机制,用户不能操纵机制调节元素的尺寸。 | |
| both:UserAgent提供双向尺寸调整机制,让用户可以调节元素的宽度和高度。 | |
| horizontal:UserAgent提供单向水平尺寸调整机制,让用户可以调节元素的宽度。 | |
| vertical:UserAgent提供单向垂直尺寸调整机制,让用户可以调节元素的高度。 | |
| inherit:默认继承。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment