CSS
html, body
{
height:100%;
}
table {
height:100%;
}
HTML
<table> <tr> <td> <div id="test">高さを合わせたいコンテンツ</div> </td> </tr> </table>
JavaScript
$('#test').height($('#test').parent().height());
html, body
{
height:100%;
}
table {
height:100%;
}
<table> <tr> <td> <div id="test">高さを合わせたいコンテンツ</div> </td> </tr> </table>
$('#test').height($('#test').parent().height());