textarea自适应高度

<!--textarea自适应高度-->
<textarea style='border: 1px solid #94BBE2;width:100%;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' id=textarea onfocus='textarea.style.posHeight=this.scrollHeight'>
</textarea>

 

<textarea name="textarea" cols="70" style="overflow-y:visible"> </textarea>

自动适应输入内容高度的TextBox控件
Code
posted @ 2008-05-20 17:01  '.Elvis.'  阅读(2591)  评论(0编辑  收藏  举报