質問編集履歴
2
x
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
**ラジオボタンが
|
1
|
+
**ラジオボタンが消えない display : none;**
|
2
2
|
|
3
|
-
ラジオボタンを使って、HTMLとCSSでタブを作成し、
|
4
|
-
その中にアコーディオンメニューを実装させたいのですが、
|
5
|
-
|
3
|
+
ラジオボタンの分スペースが開いてしまいます。
|
6
4
|
|
7
5
|
**ラジオボタン分のスペースを消したいです。**
|
8
6
|
|
9
|
-
初心者のため、テンプレートを元に作成しているのですが、
|
10
|
-
どこを直したらいいかわかりません。
|
11
7
|
基本はIEで開きますが、chromeで開くと四角の枠が表示されてしまいます。
|
12
|
-
どなたか助けてください。
|
13
8
|
|
14
9
|
|
15
10
|
### 該当のソースコード
|
@@ -18,52 +13,9 @@
|
|
18
13
|
<div class="cp_qa">
|
19
14
|
<input id="cp_conttab1" type="radio" name="tabs" checked>
|
20
15
|
<label for="cp_conttab1" class="cp_tabitem">タブ1</label>
|
21
|
-
<input id="cp_conttab2" type="radio" name="tabs">
|
22
|
-
<label for="cp_conttab2" class="cp_tabitem">タブ2</label>
|
23
|
-
<input id="cp_conttab3" type="radio" name="tabs">
|
24
|
-
<label for="cp_conttab3" class="cp_tabitem">タブ3</label>
|
25
|
-
<input id="cp_conttab4" type="radio" name="tabs">
|
26
|
-
<label for="cp_conttab4" class="cp_tabitem">タブ4</label>
|
27
16
|
<div id="cp_content1">
|
28
17
|
<div class="cp_qain">
|
29
|
-
<div class="cp_actab">
|
30
18
|
```
|
31
19
|
|
32
20
|
```css
|
33
|
-
|
34
|
-
|
35
|
-
/* ラジオボタンの非表示設定 */
|
36
|
-
.cp_qa input {
|
37
|
-
display : none;
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
/* カテゴリー */
|
42
|
-
.cp_qa #cp_content1,
|
43
|
-
.cp_qa #cp_content2,
|
44
|
-
.cp_qa #cp_content3,
|
45
|
-
.cp_qa #cp_content4 {
|
46
|
-
display: none;
|
47
|
-
padding: 10px 0 0;
|
48
|
-
border-top: 1px solid #blue;
|
49
|
-
font-size:14px;
|
50
|
-
}
|
51
|
-
|
52
|
-
.cp_qa label.cp_tabitem {
|
53
|
-
display: inline-block;
|
54
|
-
margin: 0 0 -1px;
|
55
|
-
padding: 13px 15px;
|
56
|
-
text-align: center;
|
57
|
-
color: black;
|
58
|
-
font-weight: bold;
|
59
|
-
border-radius: 0.25em 0.25em 0px 0px;
|
60
|
-
border: 1px solid rgba(27,37,56,0.1);
|
61
|
-
}
|
62
|
-
.cp_qa label.cp_tabitem:before {
|
63
|
-
margin-right: 10px;
|
64
|
-
|
65
|
-
}
|
66
|
-
.cp_qa label.cp_tabitem[for*='1']:before { content: '\f2bd'; }
|
21
|
+
.cp_qa label.cp_tabitem[for*='1']:before { content: '\f2bd'; }
|
67
|
-
.cp_qa label.cp_tabitem[for*='2']:before { content: '\f15c'; }
|
68
|
-
.cp_qa label.cp_tabitem[for*='3']:before { content: '\f0f4'; }
|
69
|
-
.cp_qa label.cp_tabitem[for*='4']:before { content: '\f001'; }
|
1
a
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,100 +27,11 @@
|
|
27
27
|
<div id="cp_content1">
|
28
28
|
<div class="cp_qain">
|
29
29
|
<div class="cp_actab">
|
30
|
-
<input id="cp_tabfour051" type="checkbox" name="tabs">
|
31
|
-
<label for="cp_tabfour051">質問テキスト</label>
|
32
|
-
<div class="cp_actab-content">
|
33
|
-
<p>答えテキスト</p>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
<div class="cp_actab">
|
37
|
-
<input id="cp_tabfour052" type="checkbox" name="tabs">
|
38
|
-
<label for="cp_tabfour052">質問テキスト</label>
|
39
|
-
<div class="cp_actab-content">
|
40
|
-
<p>答えテキスト</p>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
<div class="cp_actab">
|
44
|
-
<input id="cp_tabfour053" type="checkbox" name="tabs">
|
45
|
-
<label for="cp_tabfour053">質問テキスト 質問テキスト</label>
|
46
|
-
<div class="cp_actab-content">
|
47
|
-
<p>答えテキスト</p>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div id="cp_content2">
|
53
|
-
<div class="cp_qain">
|
54
|
-
<div class="cp_actab">
|
55
|
-
<input id="cp_tabfour054" type="checkbox" name="tabs">
|
56
|
-
<label for="cp_tabfour054">質問テキスト</label>
|
57
|
-
<div class="cp_actab-content">
|
58
|
-
<p>答えテキスト</p>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
<div class="cp_actab">
|
62
|
-
<input id="cp_tabfour055" type="checkbox" name="tabs">
|
63
|
-
<label for="cp_tabfour055">質問テキスト 質問テキスト</label>
|
64
|
-
<div class="cp_actab-content">
|
65
|
-
<p>答えテキスト</p>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
<div id="cp_content3">
|
71
|
-
<div class="cp_qain">
|
72
|
-
<div class="cp_actab">
|
73
|
-
<input id="cp_tabfour056" type="checkbox" name="tabs">
|
74
|
-
<label for="cp_tabfour056">質問テキスト</label>
|
75
|
-
<div class="cp_actab-content">
|
76
|
-
<p>答えテキスト</p>
|
77
|
-
</div>
|
78
|
-
</div>
|
79
|
-
<div class="cp_actab">
|
80
|
-
<input id="cp_tabfour057" type="checkbox" name="tabs">
|
81
|
-
<label for="cp_tabfour057">質問テキスト 質問テキスト</label>
|
82
|
-
<div class="cp_actab-content">
|
83
|
-
<p>答えテキスト</p>
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
<div id="cp_content4">
|
89
|
-
<div class="cp_qain">
|
90
|
-
<div class="cp_actab">
|
91
|
-
<input id="cp_tabfour058" type="checkbox" name="tabs">
|
92
|
-
<label for="cp_tabfour058">質問テキスト</label>
|
93
|
-
<div class="cp_actab-content">
|
94
|
-
<p>答えテキスト</p>
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
<div class="cp_actab">
|
98
|
-
<input id="cp_tabfour059" type="checkbox" name="tabs">
|
99
|
-
<label for="cp_tabfour059">質問テキスト 質問テキスト</label>
|
100
|
-
<div class="cp_actab-content">
|
101
|
-
<p>答えテキスト</p>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
</div>
|
107
30
|
```
|
108
31
|
|
109
32
|
```css
|
110
33
|
|
111
|
-
/* カテゴリタブ */
|
112
|
-
.cp_qa *, .cp_qa *:before, .cp_qa *:after {
|
113
|
-
font-family: 'FontAwesome', sans-serif;
|
114
|
-
-webkit-box-sizing: border-box;
|
115
|
-
box-sizing: border-box;
|
116
|
-
}
|
117
34
|
|
118
|
-
.cp_qa {
|
119
|
-
margin: 0 auto;
|
120
|
-
background: #ffffff;
|
121
|
-
font-size:14px;
|
122
|
-
}
|
123
|
-
|
124
35
|
/* ラジオボタンの非表示設定 */
|
125
36
|
.cp_qa input {
|
126
37
|
display : none;
|
@@ -155,87 +66,4 @@
|
|
155
66
|
.cp_qa label.cp_tabitem[for*='1']:before { content: '\f2bd'; }
|
156
67
|
.cp_qa label.cp_tabitem[for*='2']:before { content: '\f15c'; }
|
157
68
|
.cp_qa label.cp_tabitem[for*='3']:before { content: '\f0f4'; }
|
158
|
-
.cp_qa label.cp_tabitem[for*='4']:before { content: '\f001'; }
|
69
|
+
.cp_qa label.cp_tabitem[for*='4']:before { content: '\f001'; }
|
159
|
-
|
160
|
-
/* カテゴリにマウスカーソルが当たったとき */
|
161
|
-
.cp_qa label.cp_tabitem:hover {
|
162
|
-
cursor: pointer;
|
163
|
-
color: white;
|
164
|
-
background-color:##0000cd;
|
165
|
-
}
|
166
|
-
|
167
|
-
/* 選択されたカテゴリ */
|
168
|
-
.cp_qa input:checked + label {
|
169
|
-
color: white;
|
170
|
-
background-color:#0000cd;
|
171
|
-
border: 1px solid rgba(27,37,56,0.1);
|
172
|
-
border-bottom: 1px solid #ffffff;
|
173
|
-
}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
/* --ブロックのバーの色
|
178
|
-
.cp_qa input:checked + label {
|
179
|
-
border-top: 5px solid ##0000cd;
|
180
|
-
}*/
|
181
|
-
|
182
|
-
@media screen and (max-width: 650px) {
|
183
|
-
.cp_qa label.cp_tabitem {
|
184
|
-
font-size: 0;
|
185
|
-
}
|
186
|
-
label:before {
|
187
|
-
font-size: 18px;
|
188
|
-
margin: 0;
|
189
|
-
}
|
190
|
-
}
|
191
|
-
@media screen and (max-width: 400px) {
|
192
|
-
.cp_qa label.cp_tabitem {
|
193
|
-
padding: 15px;
|
194
|
-
}
|
195
|
-
.cp_qa label.cp_tabitem:before {
|
196
|
-
margin-right: 0px;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
/* QAブロック */
|
203
|
-
.cp_qa #cp_conttab1:checked ~ #cp_content1,
|
204
|
-
.cp_qa #cp_conttab2:checked ~ #cp_content2,
|
205
|
-
.cp_qa #cp_conttab3:checked ~ #cp_content3,
|
206
|
-
.cp_qa #cp_conttab4:checked ~ #cp_content4 {
|
207
|
-
display: block;
|
208
|
-
}
|
209
|
-
|
210
|
-
.cp_qa *, .cp_qa *:after, .cp_qa *:before {
|
211
|
-
-webkit-box-sizing: border-box;
|
212
|
-
box-sizing: border-box;
|
213
|
-
}
|
214
|
-
|
215
|
-
|
216
|
-
.cp_qa .cp_qain .cp_actab {
|
217
|
-
position: relative;
|
218
|
-
overflow: hidden;
|
219
|
-
width: 100%;
|
220
|
-
margin: 0 0 1em 0;
|
221
|
-
color: #1b2538;
|
222
|
-
}
|
223
|
-
.cp_qa .cp_actab input {
|
224
|
-
position: absolute;
|
225
|
-
opacity: 0;
|
226
|
-
}
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
```
|
231
|
-
※cssはタブに関するところのみです。
|
232
|
-
|
233
|
-
|
234
|
-
### 試したこと
|
235
|
-
|
236
|
-
.cp_qa input {
|
237
|
-
display : none;
|
238
|
-
}
|
239
|
-
### 補足情報(FW/ツールのバージョンなど)
|
240
|
-
|
241
|
-
ここにより詳細な情報を記載してください。
|