回答編集履歴
1
追加
test
CHANGED
@@ -17,3 +17,75 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
各セルの装飾等はHTMLタグは非推奨になっていますので、CSSで設定してください。<table>タグそのものが非推奨になっている訳ではありません。
|
20
|
+
|
21
|
+
***
|
22
|
+
|
23
|
+
<table>タグの1例
|
24
|
+
|
25
|
+
※<thead><tbody>は、省略可能なので、無くても良いです。
|
26
|
+
|
27
|
+
```HTML
|
28
|
+
|
29
|
+
<table>
|
30
|
+
|
31
|
+
<thead>
|
32
|
+
|
33
|
+
<tr class="Header">
|
34
|
+
|
35
|
+
<th class="sokutei">測定日</th>
|
36
|
+
|
37
|
+
<th class="weather">天気</th>
|
38
|
+
|
39
|
+
<th class="temp">温度</th>
|
40
|
+
|
41
|
+
<th class="humid">湿度</th>
|
42
|
+
|
43
|
+
<th class="tanntou">担当者</th>
|
44
|
+
|
45
|
+
</tr>
|
46
|
+
|
47
|
+
</thead>
|
48
|
+
|
49
|
+
<tbody>
|
50
|
+
|
51
|
+
<tr class="Value">
|
52
|
+
|
53
|
+
<td class="sokutei">12/1</td>
|
54
|
+
|
55
|
+
<td class="weather">晴れ</td>
|
56
|
+
|
57
|
+
<td class="temp"></td>
|
58
|
+
|
59
|
+
<td class="humid"></td>
|
60
|
+
|
61
|
+
<td class="tanntou">タナカ</td>
|
62
|
+
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</tbody>
|
66
|
+
|
67
|
+
</table>
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
```CSS
|
72
|
+
|
73
|
+
table {
|
74
|
+
|
75
|
+
border-collapse: collapse;
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
table th,
|
82
|
+
|
83
|
+
table td {
|
84
|
+
|
85
|
+
border: solid 1px #000;
|
86
|
+
|
87
|
+
width: 300px;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
```
|