-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtm.html
More file actions
48 lines (42 loc) · 715 Bytes
/
htm.html
File metadata and controls
48 lines (42 loc) · 715 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#box1{
width: 300px;
height:200px;
background-color:red;
display: none;
}
ul{
width: 60px;
height: 20px;
background-color: #ddd;
color: #000;
}
ul li {
list-style: none;
float: left;
}
#box2{
width: 80px;
height: 40px;
background-color: blue;
}
</style>
<script>
function boc(){
document.getElementById("box1").style.display = "block";
}
function hd(){
document.getElementById("box1").style.display = "none";
}
</script>
</head>
<body>
<div id="box2" onmouseover="boc()" onmouseout="hd()"></div>
<div id="box1"></div>
</body>
</html>