phoetry / textareaautoheight Goto Github PK
View Code? Open in Web Editor NEWUsing for Textarea-Auto-Height
Home Page: http://phoetry.me/archives/tah.html
Using for Textarea-Auto-Height
Home Page: http://phoetry.me/archives/tah.html
当前版本: TAH 0.5 更新时间: 2011.2.27 使用方法: 0. 检查CSS文件中所有textarea的line-height值, 若是纯数字, 给它加上单位em, 如: 1.5em. 否则IE(6|7|8)下插件失效. 1. 加载jQuery库(1.4+) 2. 加载textareaAutoHeight.js 3. 使用以下接口调用插件: $('textarea').tah({ moreSpace:10, //输入框底部预留的空白, 默认10, 单位像素 maxHeight:600, //指定Textarea的最大高度, 默认600, 单位像素 animateDur:200 //调整高度时的动画过渡时间, 默认200, 单位毫秒 }); 更新历史: 2012.02.27 | Beta 0.5 2011.12.13 | Beta 0.4 2011.10.18 | Beta 0.3 2011.08.23 | Beta 0.2 2011.08.22 | Beta 0.1 如果你对这个插件有兴趣, 敬请关注作者的博客: http://phoetry.me 插件发布页面: http://phoetry.me/archives/tah.html GitHub页面: https://github.com/phoetry/textareaAutoHeight 感谢你的支持与反馈. 作者: Phoetry
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.