ASP页面上的js问题

asdsadqw123412 asdsadqw123412 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
div的隐藏与显示效果出不来,alert后发现方法是进去了,但是div是动都没动!

<title>无标题页</title>
<link href="../AdminService/Administer/css1/left_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
li{
list-style-image:url(../AdminService/../AdminService/images/closed.gif);}
ul{
text-align:left;
}
</style>
<script>
function show(div){
id=eval(div.id+div.id.substring(3,4));
if(id.style.display == "none")
{
alert("block");
id.style.display == "block"
}else
{
alert("none");
id.style.display == "none"
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="width:175px; text-align:center">
<div id="div1" onclick="show(this)" style="width:162px; height:22px; background-image:url(../AdminService/images/left_tt.gif);" class="STYLE1">成员管理</div>
<div id="div11" style="width:162px">
<ul>
<li>添加成员</li>
<li>成员浏览</li>
</ul>
</div>
</div>
</form>
</body>
</html>
...全文
评论 2
收藏 已收藏
分享
返回顶部
asdsadqw123412
JavaScript 87,984 成员 224,680 内容