<
textarea
id
="tValue"
style
="overflow-y:hidden; height:20px;"
onpropertychange
="this.style.height=this.scrollHeight + 'px'"
oninput
="this.style.height=this.scrollHeight + 'px'"
></
textarea
>
本文转自豪情博客园博客,原文链接:http://www.cnblogs.com/jikey/archive/2009/12/16/1625310.html,如需转载请自行联系原作者