是这样子吗?<input type="button" onclick="tr1.style.display='none'"
value="Hidden">
<table>
<tr><td>灰豆宝宝.net</td></tr>
<tr  id="tr1"><td>wanghr100</td></tr>
</table>

解决方案 »

  1.   

    在html表格中
        <td width="36%"><input type="button" name="dr" value="导入数据文件" onClick="xml('xml')"></td><table width="100%" style="display:none " id = "xml">
      <tr>
        <td width="20%">&nbsp;</td>
        <td width="30%">&nbsp;<input type="file" name="wenjian"></td>
            <td width="20%">&nbsp;</td>
      </tr>
    </table><script language = "javascript">
    function xml(obj){
      if(document.all(obj).style.display=="none"){
      document.all(obj).style.display="";  }else{
       document.all(obj).style.display="none";  }
    }
    </script>
    试试看
    不行再找我