テーブルセル内のテキストエリアに関連する問題については、この回答を参照してください。
以下は私があなたの問題の解決策であることを願っています
デモ
html
<table border="1">
<tr>
<td>One</td>
<td>Two</td>
<td id="expand"><textarea placeholder="type here"></textarea></td>
</tr>
CSS
table {
width: 100%;
table-layout: fixed;
}
textarea {
border: none;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
脚本
$("textarea").expandingTextarea({
resize: function() //callback
{
var i=$('textarea').height();
//inspect the textarea and cell containing it, height difference is 4.
$('#expand').attr('height',i+4+'px');
}
})