<script>
document.all.控件ID.onpropertychange=function(){this.style.posHeight=this.scrollHeight};
</script>
放在网页代码的最下面就行了
TextBox一定要设置为多行模式
<script>
document.all.控件ID.onpropertychange=function(){this.style.posHeight=this.scrollHeight};
</script>
放在网页代码的最下面就行了
TextBox一定要设置为多行模式