- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
Latest commit
31 lines (30 loc) · 596 Bytes
/
Copy pathindex.html
File metadata and controls
31 lines (30 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<metacharset="utf-8" />
<title></title>
<style>
.box1{
width:100px;
height:100px;
background-color: yellow;
visibility: hidden;
}
</style>
<script>
functionshow(){
vard=document.getElementById("d");
d.style.visibility="visible";
}
functionhide(){
vard=document.getElementById("d");
d.style.visibility="hidden";
}
</script>
</head>
<body>
<divid="d" class="box1">
</div>
<aonmouseover="show()" onmouseout="hide()">显示隐藏</a>
</body>
</html>