回答編集履歴

2

誤字修正

2017/04/19 07:52

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -12,33 +12,33 @@
12
12
 
13
13
  <tr>
14
14
 
15
- <th rowspan="2">タイトルA</td>
15
+ <th rowspan="2">タイトルA</th>
16
16
 
17
- <th rowspan="2">タイトルB</td>
17
+ <th rowspan="2">タイトルB</th>
18
18
 
19
- <th colspan="6">親タイトルA</td>
19
+ <th colspan="6">親タイトルA</th>
20
20
 
21
- <th colspan="2">親タイトルB</td>
21
+ <th colspan="2">親タイトルB</th>
22
22
 
23
23
  </tr>
24
24
 
25
25
  <tr>
26
26
 
27
- <th>子タイトルA-1</td>
27
+ <th>子タイトルA-1</th>
28
28
 
29
- <th>子タイトルA-2</td>
29
+ <th>子タイトルA-2</th>
30
30
 
31
- <th>子タイトルA-3</td>
31
+ <th>子タイトルA-3</th>
32
32
 
33
- <th>子タイトルA-4</td>
33
+ <th>子タイトルA-4</th>
34
34
 
35
- <th>子タイトルA-5</td>
35
+ <th>子タイトルA-5</th>
36
36
 
37
- <th>子タイトルA-6</td>
37
+ <th>子タイトルA-6</th>
38
38
 
39
- <th>子タイトルB-1</td>
39
+ <th>子タイトルB-1</th>
40
40
 
41
- <th>子タイトルB-1</td>
41
+ <th>子タイトルB-1</th>
42
42
 
43
43
  </tr>
44
44
 

1

thead/th に変更

2017/04/19 07:52

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -1,4 +1,4 @@
1
- <td> タグの colspan, rowspan を組み合わせることで、「横にxセル分の領域を持つセル」「縦にyセル分の領域を持つセル」を作ることができます。
1
+ <th> ないし <td> タグの colspan, rowspan を組み合わせることで、「横にxセル分の領域を持つセル」「縦にyセル分の領域を持つセル」を作ることができます。
2
2
 
3
3
  これを使いましょう。
4
4
 
@@ -8,40 +8,44 @@
8
8
 
9
9
  <table>
10
10
 
11
- <tbody>
11
+ <thead>
12
12
 
13
13
  <tr>
14
14
 
15
- <td rowspan="2">タイトルA</td>
15
+ <th rowspan="2">タイトルA</td>
16
16
 
17
- <td rowspan="2">タイトルB</td>
17
+ <th rowspan="2">タイトルB</td>
18
18
 
19
- <td colspan="6">親タイトルA</td>
19
+ <th colspan="6">親タイトルA</td>
20
20
 
21
- <td colspan="2">親タイトルB</td>
21
+ <th colspan="2">親タイトルB</td>
22
22
 
23
23
  </tr>
24
24
 
25
25
  <tr>
26
26
 
27
- <td>子タイトルA-1</td>
27
+ <th>子タイトルA-1</td>
28
28
 
29
- <td>子タイトルA-2</td>
29
+ <th>子タイトルA-2</td>
30
30
 
31
- <td>子タイトルA-3</td>
31
+ <th>子タイトルA-3</td>
32
32
 
33
- <td>子タイトルA-4</td>
33
+ <th>子タイトルA-4</td>
34
34
 
35
- <td>子タイトルA-5</td>
35
+ <th>子タイトルA-5</td>
36
36
 
37
- <td>子タイトルA-6</td>
37
+ <th>子タイトルA-6</td>
38
38
 
39
- <td>子タイトルB-1</td>
39
+ <th>子タイトルB-1</td>
40
40
 
41
- <td>子タイトルB-1</td>
41
+ <th>子タイトルB-1</td>
42
42
 
43
43
  </tr>
44
44
 
45
+ </thead>
46
+
47
+ <tbody>
48
+
45
- ...
49
+ ...
46
50
 
47
51
  ```