Html 如何在td内跳水以伸展身体?

Html 如何在td内跳水以伸展身体?,html,css,Html,Css,我有一张像这样的桌子: <table> <tr> <td>...</td> <td><div class="stretch"></div></td> </tr> </table> ... 我需要将.stretch设置为适合td的高度。当前div的高度为0。我遗漏了什么?td必须有一个设定的大小 然后设置div的高度:100%; 或者继承同样的东西 你可以走了这应该行得通

我有一张像这样的桌子:

<table>
<tr>
<td>...</td>
<td><div class="stretch"></div></td>
</tr>
</table>

...

我需要将
.stretch
设置为适合
td
的高度。当前
div
的高度为0。我遗漏了什么?

td必须有一个设定的大小 然后设置div的高度:100%; 或者继承同样的东西 你可以走了

这应该行得通

.stretch {
height: 100%;
}
<table style="width: 200px; height: 200px">
    <tr>
        <td style="border: thin solid #FF0000; height:200px">            
            <div style="border: thin solid #0000FF;  width:100%; height:100%;">

            </div>
        </td>
    </tr>
</table>

对不起,这张桌子是什么样子的?你能发布html/css吗?