-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-grid.html
101 lines (85 loc) · 1.82 KB
/
9-grid.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table {
border-collapse: collapse;
text-align: center;
}
col {
border: blue 5px solid;
}
tr {
border: blue 5px solid;
}
td {
width: 50px;
height: 50px;
}
td:hover {
border: 5px solid red;
}
body>div {
width: 180px;
}
div div {
float: left;
width: 50px;
height: 50px;
border: blue 5px solid;
margin: -5px 0px 0px -5px;
text-align: center;
position: relative;
line-height: 50px;
z-index: 1;
}
div div:hover {
z-index: 2;
border: 5px solid red;
}
</style>
</head>
<body>
<table>
<tbody>
<col>
<col>
<col>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</tbody>
</table>
<hr>
<hr>
<hr>
<hr>
<div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</div>
</body>
</html>