textarea自适应高度插件 textareaAutoHeight
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://phoetry.me/archives/tah.html
- 软件文档: https://github.com/phoetry/textareaAutoHeight
软件介绍
使用方法:
0. 检查CSS文件中所有textarea的line-height值, 若是纯数字, 给它加上单位em, 如: 1.5em. 否则IE(6|7|8)下插件失效.
1. 加载jQuery库(1.4+)
2. 加载textareaAutoHeight.js
3. 使用以下接口调用插件:
$('textarea').tah({
moreSpace:15, //输入框底部预留的空白, 默认15, 单位像素
maxHeight:600, //指定Textarea的最大高度, 默认600, 单位像素
animateDur:200 //调整高度时的动画过渡时间, 默认200, 单位毫秒
});
BSD Hacks
Dru Lavigne / O'Reilly Media, Inc. / 2004-05-24 / USD 24.95
If you want more than your average BSD user--you want to explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on your own--BSD Hacks is a must-have. This ......一起来看看 《BSD Hacks》 这本书的介绍吧!
