嗨,我想通过点击一个按钮,在2秒钟内以平滑的过渡方式将HTML表格的高度从690更改为400。有没有一种使用纯CSS实现的方法?以下是我的例子:
<html>
<head>
<title>Test</title>
</head>
<body>
<table>
<tr>
<td>
<button type="button">Click Me!</button>
</td>
</tr>
<tr>
<td height="690" width="1280> <--- This cell needs it height to change to 400px when the button is clicked.
Cell 1
</td>
</tr>
</table>
</body>
</html>