日期:2014-05-17 浏览次数:20816 次
<head runat="server">
<title></title>
<style type="text/css">
#div1 {
display: none;
}
#div2 {
display: none;
}
</style>
<script type="text/javascript">
function openme() {
document.getElementById('div1').style.display = 'block';
document.getElementById('div2').style.display = 'block';
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="div1" runat="server"></div>
<div id="div2" runat="server" >
<table width="30%" style="background-color:Red" >
<tr>
<td>testssss</td>
</tr>
</table>
</div>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="openme()" />
</div>
</form>
</body>
<html>
<head >
<title></title>
<style type="text/css">
#div1 {
display: none;
}
#div2 {
display: none;
}
</style>
<script type="text/javascript">
function openme() {
document.getElementById('div1').style.display = 'block';
document.getElementById('div2').style.display = 'block';
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="div1" runat="server"></div>
<div id="div2" runat="server" >
<table width="30%" style="background-color:Red" >
<tr>
<td>testssss</td>
</tr>
</table>
</div>
<div>
<Button ID="Button1" Text="Button" type="button" onclick="openme()" />
</div>