-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.html
More file actions
47 lines (46 loc) · 1.13 KB
/
6.html
File metadata and controls
47 lines (46 loc) · 1.13 KB
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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
* {
margin: 0;
padding: 0;
}
main {
margin: 10% auto;
width: 200px;
}
input {
margin-right: 5px;
vertical-align: middle;
}
#tips {
margin-top: 5px;
padding: 5px;
background-color: #ffefa4;
border: 1px solid #f90;
display: none;
}
</style>
<script>
window.onload = function(){
var oLabel = document.getElementsByTagName("label")[0];
var oTips = document.getElementById("tips");
oLabel.onmouseover = function (){
oTips.style.display = "block";
}
oLabel.onmouseout = function() {
oTips.style.display = "none";
}
}
</script>
</head>
<body>
<main>
<label><input type="checkbox"/>两周内自动登录</label>
<div id="tips">为了您的安全,请不要在网吧或公共电脑上使用此功能</div>
</main>
</body>
</html>