<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#zhibo{width:600px;height:auto;margin:0 auto;background:red;padding:10px;}
</style>
</head>
<body>
<input type="button" value="切换" id="btn" onClick="showdiv()"/>
<div id="zhibo">
<p>我按你</p>
<p>nimazhale</p>
<div id="yin" style="display:none">
<p>九尾</p>
<p>哈佛和</p>
</div>
</div>
<script>
function showdiv(){
var cc=document.getElementById('yin');
var ccc=document.getElementById('btn');
cc.style.display="block";
ccc.value="展开";
ccc.onClick="hidediv()";
};
function hidediv(){
var cc=document.getElementById('yin');
var ccc=document.getElementById('btn');
cc.style.display="none";
ccc.value="切换";
ccc.onClick="showdiv()";
};
</script>
</body>
</html>
逆光之羽
echo_kinchao
qq_安伊偌拉_0
犇犇大卵
qq_小鱼肉_0
qq_小鱼肉_0