87,904
社区成员
发帖
与我相关
我的任务
分享
<div runat="server" id="div1" visible="false">
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="../JS/jquery-1.4.1.js" type="text/javascript"></script>
<script>
$(document).ready(function () {
//document.getElementById('Button1').style.display = ""; // 不能用
$("#Button1").show(); // 能用 但为什么????????????
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div runat="server" id="div1" visible="false">
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
</body>
</html>