<style> -- 样式
.textarea
{
border-width: 0px;
background-color: navy;
color: #FFFFFF;
overflow: hidden;
t: expression(this.οnkeyup=function(){change(this)});
}
</style>
<script>
function change(obj) {
obj.style.height = obj.scrollHeight;
}
</script>
<asp:TextBox runat="server" CssClass="textarea" BorderWidth="0" TextMode="MultiLine"
Text="ddddd" />
.textarea
{
border-width: 0px;
background-color: navy;
color: #FFFFFF;
overflow: hidden;
t: expression(this.οnkeyup=function(){change(this)});
}
</style>
<script>
function change(obj) {
obj.style.height = obj.scrollHeight;
}
</script>
<asp:TextBox runat="server" CssClass="textarea" BorderWidth="0" TextMode="MultiLine"
Text="ddddd" />