编辑下面的代码:【加编码】
<html> <head> <script> function displayResult() { document.getElementById("td1").style.verticalAlign="bottom"; } </script> </head> <body> <table border="1" height="100px">   <tr>     <td id="td1">Some example text</td>   </tr> </table> <br> <input type="button" onclick="displayResult()" value="Align text"> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂