-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhover&focus.html
69 lines (68 loc) · 1.26 KB
/
hover&focus.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.txt{
background:#0FC;
border:#009 2px solid;
width:30%;
height:30px;
padding-left:15px;
}
.txt:hover{
background:#999;
border:2px #060 solid;
color:#F00;
}
.txt:focus{
border:2px #999 solid;
background:#000;
color:#FFF;
}
.pass{
background:#3F3;
border:#C00 2px solid;
width:30%;
height:30px;
padding-left:15px;
}
.pass:hover{
background:#FF0;
border:2px #F00 solid;
color:#309;
}
.pass:focus{
border:2px #999 solid;
background:#000;
color:#FFF;
}
.btn{
background:#3FC;
border:#60C solid 2px;
outline:none;
width:10%;
height:38px;
font-size:25px;
cursor:pointer;
}
.btn:hover{
background:#F90;
color:#009;
border:2px #333366 solid;
}
.btn:active{
background:#999;
color:#FFF;
}
</style>
</head>
<body>
<label>Enter Your Name: </label>
<input type="text" class="txt"/>
<label>Password: </label>
<input type="password" class="pass"/>
<input type="button" value="Click Here" class="btn"/>
</body>
</html>