编辑您的代码:
查看结果:
<html> <head> <script type="text/javascript"> function leftAlign() { document.getElementById('header').align="left"; } </script> </head> <body> <table width="100%" border="1"> <tr id="header"> <th>名</th> <th>姓</th> </tr> <tr> <td>John</td> <td>Adams</td> </tr> </table> <br /> <input type="button" onclick="leftAlign()" value="左对齐表格行" /> </body> </html>
查看结果:
系统帮助
|
给我留言
|
收藏本站
Copyright © 2005-2008
www.cnn84.com
All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南
下午好!上班不忘查信息,精神可嘉!CNN84祝你工作顺利!