<!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">
<head>
<title>表單特效-自適應高度的多行文本框</title>
</head>
<body>
<!--把下面代碼加到<body>與</body>之間-->
<script type="text/JavaScript">
function textareasize(obj) {
if(obj.scrollHeight > 70) {
obj.style.height = obj.scrollHeight + 'px';
}
}
</script>