我的QQ:1402331052,有需要的话加
<html>
<head>
<script language="javascript">
function showA(){
var divAll = document.getElementsByTagName("div");
if(divAll[0].style.display == "block"){
for(var index = 0 ;index<divAll.length;index++){
divAll[index].style.display = "none";
}
}else{
for(var index = 0 ;index<divAll.length;index++){
divAll[index].style.display = "block";
}
}
}
</script>
</head>
<body>
<input type="button" value="change" onclick="showA()"><br><br>
<div style="border:#ff9900 1 solid;display:block;">a</div>
<br>
<div style="border:#ff9900 1 solid">b</div>
<br>
<div style="border:#ff9900 1 solid">c</div>
</body>
</html>
温馨提示:内容为网友见解,仅供参考