不会啊!
试试看下面的代码:
<table>
<TR id="tr_Condition" align="left">
<TD style="WIDTH: 188px; HEIGHT: 15px"><FONT face="宋体">监控条件</FONT></TD>
<TD style="WIDTH: 495px; HEIGHT: 15px" align="left"><FONT face="宋体">
<table align="left"> <tr> <td><asp:checkbox id="chk_WebSite" onclick="SetWatchCondition1();" runat="server" Text="网址"></asp:checkbox><asp:checkbox id="chk_TargetIP" onclick="SetWatchCondition2();" runat="server" Text="目的IP"></asp:checkbox><asp:checkbox id="chk_TargetPort" onclick="SetWatchCondition2();" runat="server" Text="目的端口"></asp:checkbox></td>
</tr>
<tr align="left">
<td align="left">
<div align="left">
<table style="WIDTH: 391px; HEIGHT: 112px" align="left">
<tr align="left">
<td align="left"><asp:textbox id="txtObject" runat="server" Width="248px"></asp:textbox><IMG onclick="AddTargets();" alt="" src="/Images/new.gif"></td>
</tr>
<tr align="left">
<td align="left">
<asp:listbox id="lstTarget" runat="server" Width="248px"></asp:listbox><IMG onclick="DeleteTargets();" alt="" src="../Images/del.gif"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</FONT>
</TD>
</TR>
<TR id="tr_Users">
<TD style="WIDTH: 188px; HEIGHT: 15px"><FONT face="宋体">用户组</FONT></TD>
<TD bgColor="#cad9f5"><FONT face="宋体"><%= s_UserList %></FONT></TD>
</TR>
</table>
<button onclick=document.getElementById("tr_Condition").style.display="none">hidden</button>
<button onclick=document.getElementById("tr_Condition").style.display="">show</button>

解决方案 »

  1.   


    自己参照一下<table>
    <tr><td>项目分类</td>
    <td>
    <input type=radio name="item" onclick="if(this.checked)trweb.style.display=''">网站建设
    <input type=radio name="item"
    onclick="if(this.checked)trweb.style.display='none'">平面设计
    <input type=radio name="item"
    onclick="if(this.checked)trweb.style.display='none'">多媒体设计
    </td></tr>
    <tr id="trweb" style="display:none"><td>网站地址:</td>
    <td>
    <input type=text value="http://">
    </td></tr>
    <tr><td>详细说明</td>
    <td>
    <textarea></textarea>
    </td></tr>
    </table>
      

  2.   

    document.getElementById("tr_Condition").style.display=""测试成功,就是页面上的内容没了,郁闷