87,903
社区成员
发帖
与我相关
我的任务
分享
<html>
<style type="text/css">
.d1{
height: 100px;
width: 100px;
background-color: red;
}
</style>
<script>
function d1click(){
alert("div1");
}
function t1blur(){
alert("text1");
document.getElementById("div1").style.display = "none";
}
</script>
<body>
<div id="div1" class="d1" onClick="d1click();"></div>
<input type="text" id="t1" onBlur="t1blur();" />
</body>
</html>
<script>
function d1click(){
alert("div1");
document.getElementById("div1").style.display = "none";
}
function t1blur(){
alert("text1");
}
</script>