http://www.csdn.net/Develop/Read_Article.asp?Id=8652

解决方案 »

  1.   

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="javascript">
    function go(){
    td1.innerText="";
    td2.innerText="";
    td3.innerText="";
    }
    </script>
    </head><body bgcolor="#FFFFFF" text="#000000">
    <table width="780" border="1" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td width="780" id="td1" height="20">ddddddddddddddddddddd</td>
      </tr>
      <tr>
        <td width="780" id="td2" height="20">ssssssssssss</td>
      </tr>
      <tr>
        <td width="780" id="td3" height="20">bbbbbbbbbbbbbbbbbbbbbb</td>
      </tr>
    </table>
    <input type="button" value="第一行" onclick="go()">
    </body>
    </html>是这个效果吗?