teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

HTML脱字の修正 </tr>

2020/10/08 13:38

投稿

densukeY
densukeY

スコア3

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,3 @@
1
- コード
2
- ```### 前提・実現したいこと
3
-
4
1
  初学者です。
5
2
  javaScriptで会社の自動シフト作成表を作ってます。
6
3
  カレンダーの次月と前月をクリックしたら前のカレンダーが残った状態なってしまいます。
@@ -20,7 +17,12 @@
20
17
  ```
21
18
 
22
19
  ### 該当のソースコード
20
+ ```ここに言語を入力
21
+ コード
22
+
23
+ ```   
23
- ```       --CSS--
24
+                        --CSS--
25
+
24
26
  body {
25
27
  margin: 0;
26
28
  }
@@ -124,21 +126,27 @@
124
126
  <tr id="row0">
125
127
  <th>2009</th>
126
128
  <th>yu-ki</th>
129
+ </tr>
127
130
  <tr id="row1">
128
131
  <th>2010</th>
129
132
  <th>aya</th>
133
+ </tr>
130
134
  <tr id="row2">
131
135
  <th>2011</th>
132
136
  <th>rino</th>
137
+ </tr>
133
138
  <tr id="row3">
134
139
  <th>2012</th>
135
140
  <th>den</th>
141
+ </tr>
136
142
  <tr id="row4">
137
143
  <th>2014</th>
138
144
  <th>petie</th>
145
+ </tr>
139
146
  <tr id="row5">
140
147
  <th>STR</th>
141
148
  <th>tanaka</th>
149
+ </tr>
142
150
  <tr id="row6">
143
151
  <th>STR</th>
144
152
  <th>yoshida</th>
@@ -156,7 +164,7 @@
156
164
  <td id="phValue0">0</td>
157
165
  </tr>
158
166
  <tr id="_row1">
159
- <td id="phValue1">0</td>
167
+ <td id="phValue1">0</td>
160
168
  </tr>
161
169
  <tr id="_row2">
162
170
  <td id="phValue2">0</td>
@@ -179,6 +187,7 @@
179
187
  <script src="js/main.js"></script>
180
188
  </body>
181
189
  </html>
190
+
182
191
  --javaScript--
183
192
  'use strict';
184
193
 

2

CSSの記載

2020/10/08 13:38

投稿

densukeY
densukeY

スコア3

title CHANGED
File without changes
body CHANGED
@@ -20,7 +20,7 @@
20
20
  ```
21
21
 
22
22
  ### 該当のソースコード
23
- ```      --CSS--
23
+ ```       --CSS--
24
24
  body {
25
25
  margin: 0;
26
26
  }
@@ -94,12 +94,8 @@
94
94
  user-select: none;
95
95
  }
96
96
 
97
-
98
-
99
-
100
-
101
- コード
97
+ --HTML--
102
- ```
98
+
103
99
  <!DOCTYPE html>
104
100
  <html lang="ja">
105
101
  <head>
@@ -183,7 +179,7 @@
183
179
  <script src="js/main.js"></script>
184
180
  </body>
185
181
  </html>
186
- --javaScript--
182
+ --javaScript--
187
183
  'use strict';
188
184
 
189
185
  {

1

CSSの記載

2020/10/08 13:27

投稿

densukeY
densukeY

スコア3

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
+ コード
1
- ### 前提・実現したいこと
2
+ ```### 前提・実現したいこと
2
3
 
3
4
  初学者です。
4
5
  javaScriptで会社の自動シフト作成表を作ってます。
@@ -19,7 +20,84 @@
19
20
  ```
20
21
 
21
22
  ### 該当のソースコード
22
- ```ここに言語を入力
23
+ ```      --CSS--
24
+ body {
25
+ margin: 0;
26
+ }
27
+
28
+ .container {
29
+ display: flex;
30
+ justify-content: center;
31
+ }
32
+
33
+ .table1 {
34
+ width: 80%;
35
+ }
36
+
37
+ .thisMonth {
38
+ text-align: center;
39
+ margin: 40px auto;
40
+ }
41
+
42
+ .sat {
43
+ background-color: skyblue;
44
+ }
45
+
46
+ .sun {
47
+ background-color: tomato;
48
+ }
49
+
50
+ #prev,
51
+ #next {
52
+ display: block;
53
+ margin: auto;
54
+ cursor: pointer;
55
+ }
56
+
57
+ .heading {
58
+ display: flex;
59
+ }
60
+
61
+ .header {
62
+ font-weight: bold;
63
+ }
64
+
65
+ .btn {
66
+ margin-left: 150px;
67
+ margin-bottom: 20px;
68
+ }
69
+
70
+ table,
71
+ th,
72
+ tr,
73
+ td {
74
+ border-collapse: collapse;
75
+ border: 2px solid #333;
76
+ }
77
+
78
+ td {
79
+ width: 53px;
80
+ height: 28px;
81
+ text-align: center;
82
+ }
83
+
84
+ #run {
85
+ cursor: pointer;
86
+ }
87
+
88
+ #run:hover {
89
+ opacity: 0.5;
90
+ }
91
+
92
+ tbody tr td {
93
+ cursor: pointer;
94
+ user-select: none;
95
+ }
96
+
97
+
98
+
99
+
100
+
23
101
  コード
24
102
  ```
25
103
  <!DOCTYPE html>