質問編集履歴

5

変更

2020/03/04 09:49

投稿

yuki911
yuki911

スコア27

test CHANGED
File without changes
test CHANGED
@@ -12,25 +12,311 @@
12
12
 
13
13
  //boards.php
14
14
 
15
- <form action="" method="post">
16
-
17
- <label for="title">タイトル</label><br>
18
-
19
- <input type="text" name="title" id="title"><br>
20
-
21
- <button type="submit">部屋を立てる</button>
22
-
23
- <input type="hidden" name="token" value="">
24
-
25
- </form>
26
-
27
-
15
+ <!DOCTYPE html>
16
+
17
+ <html lang="ja">
18
+
19
+ <head>
20
+
21
+ <link rel="stylesheet" href="/css/styles.css">
22
+
23
+ <meta charset="utf-8">
24
+
25
+ <title>メインページ</title>
26
+
27
+ <h1>掲示板へようこそ</h1>
28
+
29
+ <h2>新規投稿</h2>
30
+
31
+ </head>
32
+
33
+ <body>
34
+
35
+ <section>
36
+
37
+ <form action="" method="post">
38
+
39
+ <label for="title">タイトル</label><br>
40
+
41
+ <input type="text" name="title" id="title"><br>
42
+
43
+ <button type="submit">部屋を立てる</button>
44
+
45
+ <input type="hidden" name="token" value="29a27366d051dfe26cea26b9a13342519343257dd8fd7e5d3dfd9f3c4a489c28">
46
+
47
+ </form>
48
+
49
+ <h2>投稿一覧</h2>
50
+
51
+ <p>現在の投稿は71件です</p>
52
+
53
+ <div class="flexbox">
54
+
55
+ <div class="posts">
56
+
57
+ <a href='threads.php?boards_id=143'>
58
+
59
+ ゆうき 2020-03-04 10:21:14 <br>
60
+
61
+ 質問 </a>
62
+
63
+ </div>
64
+
65
+ <div class="button">
66
+
67
+ <form action="change.php" method="get">
68
+
69
+ <button type="submit" name="boards_id" value="143">編集</button>
70
+
71
+ </form>
72
+
73
+ <form action="delete.php" method="get">
74
+
75
+ <button type="submit" name="boards_id" value="143">削除</button>
76
+
77
+ </form>
78
+
79
+ </div>
80
+
81
+ </div>
82
+
83
+ </section>
84
+
85
+ </body>
86
+
87
+ </html>
88
+
89
+
90
+
91
+ //threads.php
92
+
93
+ <html lang="ja">
94
+
95
+ <head>
96
+
97
+ <link rel="stylesheet" href="/css/styles.css">
98
+
99
+ <meta charset="utf-8">
100
+
101
+ <title>メインページ</title>
102
+
103
+ <h1>掲示板へようこそ</h1>
104
+
105
+ <h2>新規投稿</h2>
106
+
107
+ </head>
108
+
109
+ <body>
110
+
111
+ <section>
112
+
113
+ <form action="" method="post">
114
+
115
+ <textarea name="comment" rows="8" cols="80"></textarea><br>
116
+
117
+ <input type="hidden" name="token" value="d93215f0ef7108f6b68de279972f55b20147700817314e6df1d5343448f280c0">
118
+
119
+ <button type="submit">送信</button>
120
+
121
+ </form>
122
+
123
+ </section>
124
+
125
+ <section>
126
+
127
+ <h2>投稿一覧</h2>
128
+
129
+ <p>現在の投稿は1件</p>
130
+
131
+ <div class="flexbox">
132
+
133
+ <div class="posts">
134
+
135
+ <p>
136
+
137
+ ゆうき 2020-03-04 10:49:35<br>
138
+
139
+ aaaaaaaa </p>
140
+
141
+ </div>
142
+
143
+ <div class="button">
144
+
145
+ <form action="change.php" method="get">
146
+
147
+ <button type="submit" name="threads_id" value="38">編集</button>
148
+
149
+ <input type="hidden" name="board_id" value="143">
150
+
151
+ </form>
152
+
153
+ <form action="delete.php" method="get">
154
+
155
+ <button type="submit" name="threads_id" value="38">削除</button>
156
+
157
+ </form>
158
+
159
+ </div>
160
+
161
+ </div>
162
+
163
+ </section>
164
+
165
+ </body>
166
+
167
+ </html>
168
+
169
+
170
+
171
+ ```
172
+
173
+ ```css
174
+
175
+ h1,h2,form{
176
+
177
+ text-align:center;
178
+
179
+ }
180
+
181
+
182
+
183
+ body,form{
184
+
185
+ margin:0;
186
+
187
+ }
188
+
189
+
190
+
191
+ a{
192
+
193
+ color:blue;
194
+
195
+ }
196
+
197
+
198
+
199
+ .error{
200
+
201
+ text-align:center;
202
+
203
+ color:red;
204
+
205
+ }
206
+
207
+
208
+
209
+ button{
210
+
211
+ display: inline-block;
212
+
213
+ padding: 0.3em 1em;
214
+
215
+ text-decoration: none;
216
+
217
+ color: #67c5ff;
218
+
219
+ border: solid 1px #67c5ff;
220
+
221
+ border-radius: 3px;
222
+
223
+ transition: .4s;
224
+
225
+ outline:none;
226
+
227
+ }
228
+
229
+
230
+
231
+ .button{
232
+
233
+ display:block;
234
+
235
+ }
236
+
237
+
238
+
239
+ .button :hover{
240
+
241
+ background: #67c5ff;
242
+
243
+ color: white;
244
+
245
+ }
246
+
247
+
248
+
249
+ .flexbox{
250
+
251
+ display:flex;
252
+
253
+ }
254
+
255
+
256
+
257
+ .posts{
258
+
259
+ background-color:#ffeecc;
260
+
261
+ width:100%;
262
+
263
+ }
264
+
265
+
266
+
267
+ .posts:hover{
268
+
269
+ background:#ffee;
270
+
271
+ }
272
+
273
+
274
+
275
+ .posts a{
276
+
277
+ display:flex;
278
+
279
+ height:100%;
280
+
281
+ justify-content:center;
282
+
283
+ align-items:center;
284
+
285
+ }
286
+
287
+
288
+
289
+ .posts p{
290
+
291
+ display:flex;
292
+
293
+ height:100%;
294
+
295
+ justify-content:center;
296
+
297
+ align-items:center;
298
+
299
+ margin-top: 0;
300
+
301
+ }
302
+
303
+ ```
304
+
305
+ ```html
306
+
307
+ //threads.php
28
308
 
29
309
  <div class="flexbox">
30
310
 
31
311
  <div class="posts">
32
312
 
313
+ <p>
314
+
33
- <a href="threads.php"></a>
315
+ aaa 2020-03-04 09:59:27<br>
316
+
317
+ あああ
318
+
319
+ </p>
34
320
 
35
321
  </div>
36
322
 
@@ -38,13 +324,15 @@
38
324
 
39
325
  <form action="change.php" method="get">
40
326
 
41
- <button type="submit" name="boards_id" value="">編集</button>
327
+ <button type="submit" name="threads_id" value="35">編集</button>
328
+
329
+ <input type="hidden" name="board_id" value="140">
42
330
 
43
331
  </form>
44
332
 
45
333
  <form action="delete.php" method="get">
46
334
 
47
- <button type="submit" name="boards_id" value="">削除</button>
335
+ <button type="submit" name="threads_id" value="35">削除</button>
48
336
 
49
337
  </form>
50
338
 
@@ -54,256 +342,38 @@
54
342
 
55
343
 
56
344
 
57
- //threads.php
345
+ //boards.php
58
-
59
- <form action="" method="post">
60
-
61
- <textarea name="comment" rows="8" cols="80"></textarea><br>
62
-
63
- <input type="hidden" name="token" value="">
64
-
65
- <button type="submit">送信</button>
66
-
67
- </form>
68
-
69
-
70
346
 
71
347
  <div class="flexbox">
72
348
 
73
349
  <div class="posts">
74
350
 
351
+ <a href='threads.php?boards_id=140'>
352
+
353
+ aaa 2020-03-03 18:36:55 <br>
354
+
355
+ 質問
356
+
75
- <p></p>
357
+ </a>
76
-
358
+
77
- </div>
359
+ </div>
78
-
360
+
79
- <div class="button">
361
+ <div class="button">
80
-
362
+
81
- <form action="change.php" method="get">
363
+ <form action="change.php" method="get">
82
-
364
+
83
- <button type="submit" name="threads_id" value="">編集</button>
365
+ <button type="submit" name="boards_id" value="140">編集</button>
84
-
85
- <input type="hidden" name="board_id" value="">
366
+
86
-
87
- </form>
367
+ </form>
88
-
368
+
89
- <form action="delete.php" method="get">
369
+ <form action="delete.php" method="get">
90
-
370
+
91
- <button type="submit" name="threads_id" value="">削除</button>
371
+ <button type="submit" name="boards_id" value="140">削除</button>
92
-
372
+
93
- </form>
373
+ </form>
94
-
374
+
95
- </div>
375
+ </div>
96
376
 
97
377
  </div>
98
378
 
99
-
100
-
101
379
  ```
102
-
103
- ```css
104
-
105
- h1,h2,form{
106
-
107
- text-align:center;
108
-
109
- }
110
-
111
-
112
-
113
- body,form{
114
-
115
- margin:0;
116
-
117
- }
118
-
119
-
120
-
121
- a{
122
-
123
- color:blue;
124
-
125
- }
126
-
127
-
128
-
129
- .error{
130
-
131
- text-align:center;
132
-
133
- color:red;
134
-
135
- }
136
-
137
-
138
-
139
- button{
140
-
141
- display: inline-block;
142
-
143
- padding: 0.3em 1em;
144
-
145
- text-decoration: none;
146
-
147
- color: #67c5ff;
148
-
149
- border: solid 1px #67c5ff;
150
-
151
- border-radius: 3px;
152
-
153
- transition: .4s;
154
-
155
- outline:none;
156
-
157
- }
158
-
159
-
160
-
161
- .button{
162
-
163
- display:block;
164
-
165
- }
166
-
167
-
168
-
169
- .button :hover{
170
-
171
- background: #67c5ff;
172
-
173
- color: white;
174
-
175
- }
176
-
177
-
178
-
179
- .flexbox{
180
-
181
- display:flex;
182
-
183
- }
184
-
185
-
186
-
187
- .posts{
188
-
189
- background-color:#ffeecc;
190
-
191
- width:100%;
192
-
193
- }
194
-
195
-
196
-
197
- .posts:hover{
198
-
199
- background:#ffee;
200
-
201
- }
202
-
203
-
204
-
205
- .posts a{
206
-
207
- display:flex;
208
-
209
- height:100%;
210
-
211
- justify-content:center;
212
-
213
- align-items:center;
214
-
215
- }
216
-
217
-
218
-
219
- .posts p{
220
-
221
- display:flex;
222
-
223
- height:100%;
224
-
225
- justify-content:center;
226
-
227
- align-items:center;
228
-
229
- margin-top: 0;
230
-
231
- }
232
-
233
- ```
234
-
235
- ```html
236
-
237
- //threads.php
238
-
239
- <div class="flexbox">
240
-
241
- <div class="posts">
242
-
243
- <p>
244
-
245
- aaa 2020-03-04 09:59:27<br>
246
-
247
- あああ
248
-
249
- </p>
250
-
251
- </div>
252
-
253
- <div class="button">
254
-
255
- <form action="change.php" method="get">
256
-
257
- <button type="submit" name="threads_id" value="35">編集</button>
258
-
259
- <input type="hidden" name="board_id" value="140">
260
-
261
- </form>
262
-
263
- <form action="delete.php" method="get">
264
-
265
- <button type="submit" name="threads_id" value="35">削除</button>
266
-
267
- </form>
268
-
269
- </div>
270
-
271
- </div>
272
-
273
-
274
-
275
- //boards.php
276
-
277
- <div class="flexbox">
278
-
279
- <div class="posts">
280
-
281
- <a href='threads.php?boards_id=140'>
282
-
283
- aaa 2020-03-03 18:36:55 <br>
284
-
285
- 質問
286
-
287
- </a>
288
-
289
- </div>
290
-
291
- <div class="button">
292
-
293
- <form action="change.php" method="get">
294
-
295
- <button type="submit" name="boards_id" value="140">編集</button>
296
-
297
- </form>
298
-
299
- <form action="delete.php" method="get">
300
-
301
- <button type="submit" name="boards_id" value="140">削除</button>
302
-
303
- </form>
304
-
305
- </div>
306
-
307
- </div>
308
-
309
- ```

4

変更

2020/03/04 09:49

投稿

yuki911
yuki911

スコア27

test CHANGED
File without changes
test CHANGED
@@ -231,3 +231,79 @@
231
231
  }
232
232
 
233
233
  ```
234
+
235
+ ```html
236
+
237
+ //threads.php
238
+
239
+ <div class="flexbox">
240
+
241
+ <div class="posts">
242
+
243
+ <p>
244
+
245
+ aaa 2020-03-04 09:59:27<br>
246
+
247
+ あああ
248
+
249
+ </p>
250
+
251
+ </div>
252
+
253
+ <div class="button">
254
+
255
+ <form action="change.php" method="get">
256
+
257
+ <button type="submit" name="threads_id" value="35">編集</button>
258
+
259
+ <input type="hidden" name="board_id" value="140">
260
+
261
+ </form>
262
+
263
+ <form action="delete.php" method="get">
264
+
265
+ <button type="submit" name="threads_id" value="35">削除</button>
266
+
267
+ </form>
268
+
269
+ </div>
270
+
271
+ </div>
272
+
273
+
274
+
275
+ //boards.php
276
+
277
+ <div class="flexbox">
278
+
279
+ <div class="posts">
280
+
281
+ <a href='threads.php?boards_id=140'>
282
+
283
+ aaa 2020-03-03 18:36:55 <br>
284
+
285
+ 質問
286
+
287
+ </a>
288
+
289
+ </div>
290
+
291
+ <div class="button">
292
+
293
+ <form action="change.php" method="get">
294
+
295
+ <button type="submit" name="boards_id" value="140">編集</button>
296
+
297
+ </form>
298
+
299
+ <form action="delete.php" method="get">
300
+
301
+ <button type="submit" name="boards_id" value="140">削除</button>
302
+
303
+ </form>
304
+
305
+ </div>
306
+
307
+ </div>
308
+
309
+ ```

3

変更

2020/03/04 01:06

投稿

yuki911
yuki911

スコア27

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,7 @@
1
1
  ボタンホバーのcssがthreads.phpのclass="button"の削除、変更ボタンにしか効かなくて困っています。
2
2
 
3
+ boards.phpの削除、変更ボタンには効かないです。
4
+
3
5
  他のボタンにもホバーのcssを効かせたいです。
4
6
 
5
7
  htmlは同じだからなぜ他にかからないのかがわかりません。

2

変更

2020/03/03 10:19

投稿

yuki911
yuki911

スコア27

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ボタンホバーのcssがthreads.phpのclass="button"にしか効かなくて困っています。
1
+ ボタンホバーのcssがthreads.phpのclass="button"の削除、変更ボタンにしか効かなくて困っています。
2
2
 
3
3
  他のボタンにもホバーのcssを効かせたいです。
4
4
 

1

変更

2020/03/03 10:08

投稿

yuki911
yuki911

スコア27

test CHANGED
File without changes
test CHANGED
@@ -1,8 +1,10 @@
1
- ボタンホバーのcssがthreads.phpのbutton classにしか効かなくて困っています。
1
+ ボタンホバーのcssがthreads.phpのclass="button"にしか効かなくて困っています。
2
2
 
3
3
  他のボタンにもホバーのcssを効かせたいです。
4
4
 
5
- htmlは同じだからなぜ他にかからないのかがわかりません。アドバイスもらえると嬉しいです。
5
+ htmlは同じだからなぜ他にかからないのかがわかりません。
6
+
7
+ アドバイスもらえると嬉しいです。
6
8
 
7
9
  ```html
8
10
 
@@ -24,31 +26,27 @@
24
26
 
25
27
  <div class="flexbox">
26
28
 
27
-   <div class="posts">
29
+ <div class="posts">
28
-
30
+
29
-     <a href='threads.php'>
31
+ <a href="threads.php"></a>
30
-
31
-
32
-
33
-     </a>
32
+
34
-
35
- </div>
33
+ </div>
36
-
34
+
37
- <div class="button">
35
+ <div class="button">
38
-
36
+
39
-   <form action="change.php" method="get">
37
+ <form action="change.php" method="get">
40
-
38
+
41
-    <button type="submit" name="boards_id" value="">編集</button>
39
+ <button type="submit" name="boards_id" value="">編集</button>
42
-
40
+
43
- </form>
41
+ </form>
44
-
42
+
45
-    <form action="delete.php" method="get">
43
+ <form action="delete.php" method="get">
46
-
44
+
47
-      <button type="submit" name="boards_id" value="">削除</button>
45
+ <button type="submit" name="boards_id" value="">削除</button>
48
-
46
+
49
-    </form>
47
+ </form>
50
-
48
+
51
-  </div>
49
+ </div>
52
50
 
53
51
  </div>
54
52
 
@@ -70,36 +68,34 @@
70
68
 
71
69
  <div class="flexbox">
72
70
 
73
-   <div class="posts">
71
+ <div class="posts">
74
-
75
-     <p>
72
+
76
-
77
-
78
-
79
- </p>
73
+ <p></p>
80
-
74
+
81
-   </div>
75
+ </div>
82
-
76
+
83
-   <div class="button">
77
+ <div class="button">
84
-
78
+
85
-     <form action="change.php" method="get">
79
+ <form action="change.php" method="get">
86
-
80
+
87
-       <button type="submit" name="threads_id" value="">編集</button>
81
+ <button type="submit" name="threads_id" value="">編集</button>
88
-
82
+
89
- <input type="hidden" name="board_id" value="">
83
+ <input type="hidden" name="board_id" value="">
90
-
84
+
91
- </form>
85
+ </form>
92
-
86
+
93
- <form action="delete.php" method="get">
87
+ <form action="delete.php" method="get">
94
-
88
+
95
- <button type="submit" name="threads_id" value="">削除</button>
89
+ <button type="submit" name="threads_id" value="">削除</button>
96
-
90
+
97
- </form>
91
+ </form>
98
-
92
+
99
- </div>
93
+ </div>
100
94
 
101
95
  </div>
102
96
 
97
+
98
+
103
99
  ```
104
100
 
105
101
  ```css