让textbox随着输入字符数自动变换宽度
<asp:TextBox ID="txtauto" runat="server" onkeydown="changeInputLength()"></asp:TextBox>
一句话:
function changeInputLength()
{
document.getElementById("txtauto").size = document.getElementById("txtauto").value.length+2;
}