質問編集履歴
2
x
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
**ラジオボタンが
|
1
|
+
**ラジオボタンが消えない display : none;**
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
ラジオボタンを使って、HTMLとCSSでタブを作成し、
|
6
|
-
|
7
|
-
その中にアコーディオンメニューを実装させたいのですが、
|
8
|
-
|
9
|
-
|
5
|
+
ラジオボタンの分スペースが開いてしまいます。
|
10
6
|
|
11
7
|
|
12
8
|
|
@@ -14,13 +10,7 @@
|
|
14
10
|
|
15
11
|
|
16
12
|
|
17
|
-
初心者のため、テンプレートを元に作成しているのですが、
|
18
|
-
|
19
|
-
どこを直したらいいかわかりません。
|
20
|
-
|
21
13
|
基本はIEで開きますが、chromeで開くと四角の枠が表示されてしまいます。
|
22
|
-
|
23
|
-
どなたか助けてください。
|
24
14
|
|
25
15
|
|
26
16
|
|
@@ -38,23 +28,9 @@
|
|
38
28
|
|
39
29
|
<label for="cp_conttab1" class="cp_tabitem">タブ1</label>
|
40
30
|
|
41
|
-
<input id="cp_conttab2" type="radio" name="tabs">
|
42
|
-
|
43
|
-
<label for="cp_conttab2" class="cp_tabitem">タブ2</label>
|
44
|
-
|
45
|
-
<input id="cp_conttab3" type="radio" name="tabs">
|
46
|
-
|
47
|
-
<label for="cp_conttab3" class="cp_tabitem">タブ3</label>
|
48
|
-
|
49
|
-
<input id="cp_conttab4" type="radio" name="tabs">
|
50
|
-
|
51
|
-
<label for="cp_conttab4" class="cp_tabitem">タブ4</label>
|
52
|
-
|
53
31
|
<div id="cp_content1">
|
54
32
|
|
55
33
|
<div class="cp_qain">
|
56
|
-
|
57
|
-
<div class="cp_actab">
|
58
34
|
|
59
35
|
```
|
60
36
|
|
@@ -62,76 +38,4 @@
|
|
62
38
|
|
63
39
|
```css
|
64
40
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
/* ラジオボタンの非表示設定 */
|
70
|
-
|
71
|
-
.cp_qa input {
|
72
|
-
|
73
|
-
display : none;
|
74
|
-
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
/* カテゴリー */
|
82
|
-
|
83
|
-
.cp_qa #cp_content1,
|
84
|
-
|
85
|
-
.cp_qa #cp_content2,
|
86
|
-
|
87
|
-
.cp_qa #cp_content3,
|
88
|
-
|
89
|
-
.cp_qa #cp_content4 {
|
90
|
-
|
91
|
-
display: none;
|
92
|
-
|
93
|
-
padding: 10px 0 0;
|
94
|
-
|
95
|
-
border-top: 1px solid #blue;
|
96
|
-
|
97
|
-
font-size:14px;
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
.cp_qa label.cp_tabitem {
|
104
|
-
|
105
|
-
display: inline-block;
|
106
|
-
|
107
|
-
margin: 0 0 -1px;
|
108
|
-
|
109
|
-
padding: 13px 15px;
|
110
|
-
|
111
|
-
text-align: center;
|
112
|
-
|
113
|
-
color: black;
|
114
|
-
|
115
|
-
font-weight: bold;
|
116
|
-
|
117
|
-
border-radius: 0.25em 0.25em 0px 0px;
|
118
|
-
|
119
|
-
border: 1px solid rgba(27,37,56,0.1);
|
120
|
-
|
121
|
-
}
|
122
|
-
|
123
|
-
.cp_qa label.cp_tabitem:before {
|
124
|
-
|
125
|
-
margin-right: 10px;
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
}
|
130
|
-
|
131
41
|
.cp_qa label.cp_tabitem[for*='1']:before { content: '\f2bd'; }
|
132
|
-
|
133
|
-
.cp_qa label.cp_tabitem[for*='2']:before { content: '\f15c'; }
|
134
|
-
|
135
|
-
.cp_qa label.cp_tabitem[for*='3']:before { content: '\f0f4'; }
|
136
|
-
|
137
|
-
.cp_qa label.cp_tabitem[for*='4']:before { content: '\f001'; }
|
1
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,160 +56,6 @@
|
|
56
56
|
|
57
57
|
<div class="cp_actab">
|
58
58
|
|
59
|
-
<input id="cp_tabfour051" type="checkbox" name="tabs">
|
60
|
-
|
61
|
-
<label for="cp_tabfour051">質問テキスト</label>
|
62
|
-
|
63
|
-
<div class="cp_actab-content">
|
64
|
-
|
65
|
-
<p>答えテキスト</p>
|
66
|
-
|
67
|
-
</div>
|
68
|
-
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<div class="cp_actab">
|
72
|
-
|
73
|
-
<input id="cp_tabfour052" type="checkbox" name="tabs">
|
74
|
-
|
75
|
-
<label for="cp_tabfour052">質問テキスト</label>
|
76
|
-
|
77
|
-
<div class="cp_actab-content">
|
78
|
-
|
79
|
-
<p>答えテキスト</p>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div class="cp_actab">
|
86
|
-
|
87
|
-
<input id="cp_tabfour053" type="checkbox" name="tabs">
|
88
|
-
|
89
|
-
<label for="cp_tabfour053">質問テキスト 質問テキスト</label>
|
90
|
-
|
91
|
-
<div class="cp_actab-content">
|
92
|
-
|
93
|
-
<p>答えテキスト</p>
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
</div>
|
102
|
-
|
103
|
-
<div id="cp_content2">
|
104
|
-
|
105
|
-
<div class="cp_qain">
|
106
|
-
|
107
|
-
<div class="cp_actab">
|
108
|
-
|
109
|
-
<input id="cp_tabfour054" type="checkbox" name="tabs">
|
110
|
-
|
111
|
-
<label for="cp_tabfour054">質問テキスト</label>
|
112
|
-
|
113
|
-
<div class="cp_actab-content">
|
114
|
-
|
115
|
-
<p>答えテキスト</p>
|
116
|
-
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
<div class="cp_actab">
|
122
|
-
|
123
|
-
<input id="cp_tabfour055" type="checkbox" name="tabs">
|
124
|
-
|
125
|
-
<label for="cp_tabfour055">質問テキスト 質問テキスト</label>
|
126
|
-
|
127
|
-
<div class="cp_actab-content">
|
128
|
-
|
129
|
-
<p>答えテキスト</p>
|
130
|
-
|
131
|
-
</div>
|
132
|
-
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
</div>
|
138
|
-
|
139
|
-
<div id="cp_content3">
|
140
|
-
|
141
|
-
<div class="cp_qain">
|
142
|
-
|
143
|
-
<div class="cp_actab">
|
144
|
-
|
145
|
-
<input id="cp_tabfour056" type="checkbox" name="tabs">
|
146
|
-
|
147
|
-
<label for="cp_tabfour056">質問テキスト</label>
|
148
|
-
|
149
|
-
<div class="cp_actab-content">
|
150
|
-
|
151
|
-
<p>答えテキスト</p>
|
152
|
-
|
153
|
-
</div>
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<div class="cp_actab">
|
158
|
-
|
159
|
-
<input id="cp_tabfour057" type="checkbox" name="tabs">
|
160
|
-
|
161
|
-
<label for="cp_tabfour057">質問テキスト 質問テキスト</label>
|
162
|
-
|
163
|
-
<div class="cp_actab-content">
|
164
|
-
|
165
|
-
<p>答えテキスト</p>
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
</div>
|
170
|
-
|
171
|
-
</div>
|
172
|
-
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div id="cp_content4">
|
176
|
-
|
177
|
-
<div class="cp_qain">
|
178
|
-
|
179
|
-
<div class="cp_actab">
|
180
|
-
|
181
|
-
<input id="cp_tabfour058" type="checkbox" name="tabs">
|
182
|
-
|
183
|
-
<label for="cp_tabfour058">質問テキスト</label>
|
184
|
-
|
185
|
-
<div class="cp_actab-content">
|
186
|
-
|
187
|
-
<p>答えテキスト</p>
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<div class="cp_actab">
|
194
|
-
|
195
|
-
<input id="cp_tabfour059" type="checkbox" name="tabs">
|
196
|
-
|
197
|
-
<label for="cp_tabfour059">質問テキスト 質問テキスト</label>
|
198
|
-
|
199
|
-
<div class="cp_actab-content">
|
200
|
-
|
201
|
-
<p>答えテキスト</p>
|
202
|
-
|
203
|
-
</div>
|
204
|
-
|
205
|
-
</div>
|
206
|
-
|
207
|
-
</div>
|
208
|
-
|
209
|
-
</div>
|
210
|
-
|
211
|
-
</div>
|
212
|
-
|
213
59
|
```
|
214
60
|
|
215
61
|
|
@@ -217,30 +63,6 @@
|
|
217
63
|
```css
|
218
64
|
|
219
65
|
|
220
|
-
|
221
|
-
/* カテゴリタブ */
|
222
|
-
|
223
|
-
.cp_qa *, .cp_qa *:before, .cp_qa *:after {
|
224
|
-
|
225
|
-
font-family: 'FontAwesome', sans-serif;
|
226
|
-
|
227
|
-
-webkit-box-sizing: border-box;
|
228
|
-
|
229
|
-
box-sizing: border-box;
|
230
|
-
|
231
|
-
}
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
.cp_qa {
|
236
|
-
|
237
|
-
margin: 0 auto;
|
238
|
-
|
239
|
-
background: #ffffff;
|
240
|
-
|
241
|
-
font-size:14px;
|
242
|
-
|
243
|
-
}
|
244
66
|
|
245
67
|
|
246
68
|
|
@@ -313,169 +135,3 @@
|
|
313
135
|
.cp_qa label.cp_tabitem[for*='3']:before { content: '\f0f4'; }
|
314
136
|
|
315
137
|
.cp_qa label.cp_tabitem[for*='4']:before { content: '\f001'; }
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
/* カテゴリにマウスカーソルが当たったとき */
|
320
|
-
|
321
|
-
.cp_qa label.cp_tabitem:hover {
|
322
|
-
|
323
|
-
cursor: pointer;
|
324
|
-
|
325
|
-
color: white;
|
326
|
-
|
327
|
-
background-color:##0000cd;
|
328
|
-
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
/* 選択されたカテゴリ */
|
334
|
-
|
335
|
-
.cp_qa input:checked + label {
|
336
|
-
|
337
|
-
color: white;
|
338
|
-
|
339
|
-
background-color:#0000cd;
|
340
|
-
|
341
|
-
border: 1px solid rgba(27,37,56,0.1);
|
342
|
-
|
343
|
-
border-bottom: 1px solid #ffffff;
|
344
|
-
|
345
|
-
}
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
/* --ブロックのバーの色
|
354
|
-
|
355
|
-
.cp_qa input:checked + label {
|
356
|
-
|
357
|
-
border-top: 5px solid ##0000cd;
|
358
|
-
|
359
|
-
}*/
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
@media screen and (max-width: 650px) {
|
364
|
-
|
365
|
-
.cp_qa label.cp_tabitem {
|
366
|
-
|
367
|
-
font-size: 0;
|
368
|
-
|
369
|
-
}
|
370
|
-
|
371
|
-
label:before {
|
372
|
-
|
373
|
-
font-size: 18px;
|
374
|
-
|
375
|
-
margin: 0;
|
376
|
-
|
377
|
-
}
|
378
|
-
|
379
|
-
}
|
380
|
-
|
381
|
-
@media screen and (max-width: 400px) {
|
382
|
-
|
383
|
-
.cp_qa label.cp_tabitem {
|
384
|
-
|
385
|
-
padding: 15px;
|
386
|
-
|
387
|
-
}
|
388
|
-
|
389
|
-
.cp_qa label.cp_tabitem:before {
|
390
|
-
|
391
|
-
margin-right: 0px;
|
392
|
-
|
393
|
-
}
|
394
|
-
|
395
|
-
}
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
/* QAブロック */
|
404
|
-
|
405
|
-
.cp_qa #cp_conttab1:checked ~ #cp_content1,
|
406
|
-
|
407
|
-
.cp_qa #cp_conttab2:checked ~ #cp_content2,
|
408
|
-
|
409
|
-
.cp_qa #cp_conttab3:checked ~ #cp_content3,
|
410
|
-
|
411
|
-
.cp_qa #cp_conttab4:checked ~ #cp_content4 {
|
412
|
-
|
413
|
-
display: block;
|
414
|
-
|
415
|
-
}
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
.cp_qa *, .cp_qa *:after, .cp_qa *:before {
|
420
|
-
|
421
|
-
-webkit-box-sizing: border-box;
|
422
|
-
|
423
|
-
box-sizing: border-box;
|
424
|
-
|
425
|
-
}
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
.cp_qa .cp_qain .cp_actab {
|
432
|
-
|
433
|
-
position: relative;
|
434
|
-
|
435
|
-
overflow: hidden;
|
436
|
-
|
437
|
-
width: 100%;
|
438
|
-
|
439
|
-
margin: 0 0 1em 0;
|
440
|
-
|
441
|
-
color: #1b2538;
|
442
|
-
|
443
|
-
}
|
444
|
-
|
445
|
-
.cp_qa .cp_actab input {
|
446
|
-
|
447
|
-
position: absolute;
|
448
|
-
|
449
|
-
opacity: 0;
|
450
|
-
|
451
|
-
}
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
```
|
460
|
-
|
461
|
-
※cssはタブに関するところのみです。
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
### 試したこと
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
.cp_qa input {
|
472
|
-
|
473
|
-
display : none;
|
474
|
-
|
475
|
-
}
|
476
|
-
|
477
|
-
### 補足情報(FW/ツールのバージョンなど)
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
ここにより詳細な情報を記載してください。
|