87,997
社区成员




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="checkbox" onclick="showdiv(this);" />
<div id="div" style="display:none;width:100px;height:100px;border:solid 1px red;">我是div</div>
<script type="text/javascript">
function showdiv(ch){
if(ch.checked){
document.getElementById("div").style.display="block";
}
else{
document.getElementById("div").style.display="none";
}
}
</script>
</body>
</html>