Coder Social home page Coder Social logo

textareaautoheight's Introduction

当前版本: 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

textareaautoheight's People

Contributors

phoetry avatar

Stargazers

黄昏下的舞者 avatar bzliukai avatar uhigh avatar Balthild avatar ideazhao avatar listensong avatar jibin.hou avatar Terry Cai avatar Heroic Yang avatar weirhp avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.