-
Notifications
You must be signed in to change notification settings - Fork 14
/
border-collapse.html
131 lines (126 loc) · 2.04 KB
/
border-collapse.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!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>
<title>border-collapse</title>
<style type="text/css" media="all">
head {display: block;}
style.test {display: block; float: right;
padding: 0 1em 1em; border: 1px solid gray; border-width: 0 0 1px 1px;
color: gray; background: #EEE;
white-space: pre; font-family: monospace;}
</style>
<style type="text/css" media="all" class="test">
table {margin: 2.5em;}
th {border: 1px solid red;}
td {border: 1px solid gray;}
#one {border-collapse: collapse;}
#two {border-collapse: separate;}
#one, #two {border-spacing: 10px;}
</style>
</head>
<body>
<table id="zero">
<caption>#zero</caption>
<thead>
<tr>
<th scope="col">th-c1</th>
<th scope="col">th-c2</th>
<th scope="col">th-c3</th>
</tr>
</thead>
<tbody>
<tr>
<td>r1-c1</td>
<td>r1-c2</td>
<td>r1-c3</td>
</tr>
<tr>
<th scope="row">r2-c1</th>
<td>r2-c2</td>
<td>r2-c3</td>
</tr>
<tr>
<td>r3-c1</td>
<td>r3-c2</td>
<td>r3-c3</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>tf-c1</td>
<td>tf-c2</td>
<th scope="col">tf-c3</th>
</tr>
</tfoot>
</table>
<table id="one" cellspacing="10">
<caption>#one</caption>
<thead>
<tr>
<th scope="col">th-c1</th>
<th scope="col">th-c2</th>
<th scope="col">th-c3</th>
</tr>
</thead>
<tbody>
<tr>
<td>r1-c1</td>
<td>r1-c2</td>
<td>r1-c3</td>
</tr>
<tr>
<th scope="row">r2-c1</th>
<td>r2-c2</td>
<td>r2-c3</td>
</tr>
<tr>
<td>r3-c1</td>
<td>r3-c2</td>
<td>r3-c3</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>tf-c1</td>
<td>tf-c2</td>
<th scope="col">tf-c3</th>
</tr>
</tfoot>
</table>
<table id="two">
<caption>#two</caption>
<thead>
<tr>
<th scope="col">th-c1</th>
<th scope="col">th-c2</th>
<th scope="col">th-c3</th>
</tr>
</thead>
<tbody>
<tr>
<td>r1-c1</td>
<td>r1-c2</td>
<td>r1-c3</td>
</tr>
<tr>
<th scope="row">r2-c1</th>
<td>r2-c2</td>
<td>r2-c3</td>
</tr>
<tr>
<td>r3-c1</td>
<td>r3-c2</td>
<td>r3-c3</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>tf-c1</td>
<td>tf-c2</td>
<th scope="col">tf-c3</th>
</tr>
</tfoot>
</table>
</body>
</html>