<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<HTML>
<HEAD>
<TITLE>无滚动条Textarea自动适用高度</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<textarea id="test" rows="1" onpropertychange="this.style.height=this.scrollHeight+'px';" οninput="this.style.height=this.scrollHeight+'px';" style="overflow:hidden;height:16px;"></textarea>
</BODY>
</HTML>