-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtablespan.html
103 lines (87 loc) · 1.46 KB
/
tablespan.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
<!doctype html>
<html lang = "ko">
<head>
<meta charset = "UTF-8">
<title></title>
<link rel = "stylesheet" href = "./css/mycss.css" type = "text/css">
<style type = "text/css">
table{
border : 2px solid black;
}
caption{
font-size : 2.0em;
margin-bottom : 20px;
margin-top : 10px;
caption-side : bottom;
}
#c1{
caption-side : top;
}
td{
width : 300px;
height : 50px;
text-align : center;
font-size : 2.0em;
}
#t2{
border : 2px solid purple;
width : 500px;
height : 100px;
}
</style>
</head>
<body>
<pre>
rowspan : 행병합, 세로로 병합
colspan : 열병합, 가로로 병합
</pre>
<table border = "1">
<caption>
행과 열의 병합
</caption>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td rowspan = "2">1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td colspan = "3">1</td>
</tr>
</table>
<hr>
<table id = "t2" border = "1">
<caption id = "c1">
테이블 연습 2
</caption>
<tr>
<td colspan = "2"></td>
<td colspan = "2"></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan = "4"></td>
<td colspan = "2"></td>
</tr>
<tr>
<td colspan = "4"></td>
<td colspan = "2" rowspan = "2"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>