質問編集履歴

2

質問文、訂正致しました。

2018/09/19 02:17

投稿

time_waits
time_waits

スコア15

test CHANGED
File without changes
test CHANGED
@@ -206,188 +206,6 @@
206
206
 
207
207
 
208
208
 
209
- ■HTML■
210
-
211
- <div class="cp_cssslider">
212
-
213
- <input type="radio" name="cp_switch" checked/>
214
-
215
- <label for="photo1"><img src="img/photo1.jpg" /></label>
216
-
217
- <img src="img/photo1.jpg" >
218
-
219
- <input type="radio" name="cp_switch"/>
220
-
221
- <label for="photo2"><img src="img/photo2.jpg" /></label>
222
-
223
- <img src="img/photo2.jpg"/>
224
-
225
- <input type="radio" name="cp_switch"/>
226
-
227
- <label for="photo3"><img src="img/photo3.jpg" /></label>
228
-
229
- <img src="img/photo3.jpg"/>
230
-
231
- </div>
232
-
233
-
234
-
235
- ■CSS■
236
-
237
-
238
-
239
- *, *:before, *:after {
240
-
241
- -webkit-box-sizing: border-box;
242
-
243
- box-sizing: border-box;
244
-
245
- }
246
-
247
- .cp_cssslider {
248
-
249
- width: 1420px;
250
-
251
- padding-top: 550px;
252
-
253
- position: relative;
254
-
255
- margin: 2em auto;
256
-
257
- text-align: center;
258
-
259
- }
260
-
261
- .cp_cssslider > img {
262
-
263
- animation: show 12s infinite;
264
-
265
- max-width: 100%;
266
-
267
- height: auto;
268
-
269
- opacity: 0;
270
-
271
- position: absolute;
272
-
273
- left: 0;
274
-
275
- top: 0;
276
-
277
- }
278
-
279
- .cp_cssslider input[name='cp_switch'] {
280
-
281
- display: none;
282
-
283
- }
284
-
285
- /* サムネイル */
286
-
287
- .cp_cssslider label {
288
-
289
- margin: 15px 5px 15px 5px;
290
-
291
- border: 2px solid #ffffff;
292
-
293
- display: inline-block;
294
-
295
- cursor: pointer;
296
-
297
- transition: all 0.5s ease;
298
-
299
- opacity: 0.6;
300
-
301
- border-radius: 3px;
302
-
303
- float:right;
304
-
305
- }
306
-
307
- .cp_cssslider label:hover {
308
-
309
- opacity: 0.9;
310
-
311
- }
312
-
313
- .cp_cssslider label img {
314
-
315
- display: block;
316
-
317
- width: 140px;
318
-
319
- border-radius: 2px;
320
-
321
- }
322
-
323
- .cp_cssslider input[name='cp_switch']:checked + label {
324
-
325
- border: 2px solid #FF7043;
326
-
327
- opacity: 1;
328
-
329
- }
330
-
331
- .cp_cssslider input[name='cp_switch'] ~ img {
332
-
333
- opacity: 0;
334
-
335
- }
336
-
337
- .cp_cssslider input[name='cp_switch']:checked + label + img {
338
-
339
- opacity: 1;
340
-
341
- }
342
-
343
-
344
-
345
- @keyframes show {
346
-
347
- 0% {opacity: 0}
348
-
349
- 17% {opacity: 1}
350
-
351
- 33% {opacity: 1}
352
-
353
- 50% {opacity: 0}
354
-
355
- }
356
-
357
-
358
-
359
- .slide-show img:nth-of-type(1) {
360
-
361
- position: relative;
362
-
363
- }
364
-
365
-
366
-
367
- .slide-show img:nth-of-type(2) {
368
-
369
- animation-delay: 0s;
370
-
371
- }
372
-
373
-
374
-
375
- .slide-show img:nth-of-type(3) {
376
-
377
- animation-delay: 4s;
378
-
379
- }
380
-
381
-
382
-
383
- .slide-show img:nth-of-type(4) {
384
-
385
- animation-delay: 8s;
386
-
387
- }
388
-
389
-
390
-
391
209
  ### 試したこと
392
210
 
393
211
 

1

コード入力致しました。このような形で良いのでしょうか?全くど素人なのでご迷惑をおかけ致します。

2018/09/19 02:17

投稿

time_waits
time_waits

スコア15

test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,192 @@
20
20
 
21
21
  ### 該当のソースコード
22
22
 
23
+
24
+
25
+ ```ここに言語を入力
26
+
27
+ <div class="cp_cssslider">
28
+
29
+ <input type="radio" name="cp_switch" checked/>
30
+
31
+ <label for="photo1"><img src="img/photo1.jpg" /></label>
32
+
33
+ <img src="img/photo1.jpg" >
34
+
35
+ <input type="radio" name="cp_switch"/>
36
+
37
+ <label for="photo2"><img src="img/photo2.jpg" /></label>
38
+
39
+ <img src="img/photo2.jpg"/>
40
+
41
+ <input type="radio" name="cp_switch"/>
42
+
43
+ <label for="photo3"><img src="img/photo3.jpg" /></label>
44
+
45
+ <img src="img/photo3.jpg"/>
46
+
47
+ </div>
48
+
49
+ ```
50
+
51
+ ```ここに言語を入力
52
+
53
+ *, *:before, *:after {
54
+
55
+ -webkit-box-sizing: border-box;
56
+
57
+ box-sizing: border-box;
58
+
59
+ }
60
+
61
+ .cp_cssslider {
62
+
63
+ width: 1420px;
64
+
65
+ padding-top: 550px;
66
+
67
+ position: relative;
68
+
69
+ margin: 2em auto;
70
+
71
+ text-align: center;
72
+
73
+ }
74
+
75
+ .cp_cssslider > img {
76
+
77
+ animation: show 12s infinite;
78
+
79
+ max-width: 100%;
80
+
81
+ height: auto;
82
+
83
+ opacity: 0;
84
+
85
+ position: absolute;
86
+
87
+ left: 0;
88
+
89
+ top: 0;
90
+
91
+ }
92
+
93
+ .cp_cssslider input[name='cp_switch'] {
94
+
95
+ display: none;
96
+
97
+ }
98
+
99
+ /* サムネイル */
100
+
101
+ .cp_cssslider label {
102
+
103
+ margin: 15px 5px 15px 5px;
104
+
105
+ border: 2px solid #ffffff;
106
+
107
+ display: inline-block;
108
+
109
+ cursor: pointer;
110
+
111
+ transition: all 0.5s ease;
112
+
113
+ opacity: 0.6;
114
+
115
+ border-radius: 3px;
116
+
117
+ float:right;
118
+
119
+ }
120
+
121
+ .cp_cssslider label:hover {
122
+
123
+ opacity: 0.9;
124
+
125
+ }
126
+
127
+ .cp_cssslider label img {
128
+
129
+ display: block;
130
+
131
+ width: 140px;
132
+
133
+ border-radius: 2px;
134
+
135
+ }
136
+
137
+ .cp_cssslider input[name='cp_switch']:checked + label {
138
+
139
+ border: 2px solid #FF7043;
140
+
141
+ opacity: 1;
142
+
143
+ }
144
+
145
+ .cp_cssslider input[name='cp_switch'] ~ img {
146
+
147
+ opacity: 0;
148
+
149
+ }
150
+
151
+ .cp_cssslider input[name='cp_switch']:checked + label + img {
152
+
153
+ opacity: 1;
154
+
155
+ }
156
+
157
+
158
+
159
+ @keyframes show {
160
+
161
+ 0% {opacity: 0}
162
+
163
+ 17% {opacity: 1}
164
+
165
+ 33% {opacity: 1}
166
+
167
+ 50% {opacity: 0}
168
+
169
+ }
170
+
171
+
172
+
173
+ .slide-show img:nth-of-type(1) {
174
+
175
+ position: relative;
176
+
177
+ }
178
+
179
+
180
+
181
+ .slide-show img:nth-of-type(2) {
182
+
183
+ animation-delay: 0s;
184
+
185
+ }
186
+
187
+
188
+
189
+ .slide-show img:nth-of-type(3) {
190
+
191
+ animation-delay: 4s;
192
+
193
+ }
194
+
195
+
196
+
197
+ .slide-show img:nth-of-type(4) {
198
+
199
+ animation-delay: 8s;
200
+
201
+ }
202
+
203
+
204
+
205
+ ```
206
+
207
+
208
+
23
209
  ■HTML■
24
210
 
25
211
  <div class="cp_cssslider">